#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define REP(i, n) for(ll i=0;i<ll(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i, a, b) for(ll i=a;i<=ll(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=ll(b);i--)

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

    return 0;
}
#include <iostream>
using namespace std;
int main(){
    string s;
    cin>>s;
    cout<<s[1]<<s[2]<<s[0];

    
    

}