#include<bits/stdc++.h> 
using namespace std;
int x,q,a,s,d,f;
int main(){
    cin>>x;
    q=x%10;
    x=x/10;
    a=x%10;
    x=x/10;
    s=x%10;
    x=x/10;
    printf("%d%d%d",q,a,s);
}
/**************************************************************
	Problem: 1028
	User: chenyichuen
	Language: C++
	Result: Wrong Answer
****************************************************************/