#include<bits/stdc++.h>
using namespace std;
#define m7          1000000007
#define m9          1000000009
#define ll          long long
#define boost       ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define F           first
#define S           second
#define pb          push_back
#define f1(i,n)     for(int i=0;i<n;i++)
#define all(c)      c.begin(),c.end()
#define ldb         long double




 
int main() {
     

    int t;
   // cin>>t;
    t = 1;
    while(t--)
    {
        string s;
        cin>>s;
        cout<<s[1]<<s[2]<<s[0]<<'\n';



    }
	return 0;
}
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std;
typedef long long ll; 
const int inf = INT_MAX / 2; 
const ll infl = 1LL << 60;


int main()
{
    char c1,c2,c3;
    cin >> c1 >>c2 >>c3;
    string S = "";
    S = S + c2 + c3 + c1;
    cout << S << endl;

}