#include <iostream>
using namespace std;

int main() {
    string S;
    cin>>S;
    cout<<S[1]<<S[2]<<S[0]<<endl;
} 

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define forn(i,x,n) for(int i = x;i <= n;++i)
#define forr(i,x,n) for(int i = n;i >= x;--i)
#define Angel_Dust ios::sync_with_stdio(0);cin.tie(0)



int main()
{
//    freopen("D:\\OJCodes\\TTT\\in.txt","r",stdin);
//    freopen("D:\\OJCodes\\TTT\\out.txt","w",stdout);

    Angel_Dust;
    string s;cin >> s;
    cout << s[1] << s[2] << s[0];

//    fclose(stdin);
//    fclose(stdout);
    return 0;
}