#include <iostream>
using namespace std;
int main() {
string s; cin >> s;
cout << s[1] << s[2] << s[0];
}
#include <bits/stdc++.h>
    using namespace std;
    #define max(a,b) (a>b?a:b)
    #define min(a,b) (a<b?a:b)
    typedef long long int ll;
int main()
{ string s;
char temp;
cin>>s;
temp=s[0];
s[0]=s[1];
s[1]=s[2];
s[2]=temp;
cout<<s;
  

    return 0;
}
