#include <bits/stdc++.h>
using namespace std;
#define For(i, n) for (int i = 0; i < n; i++)
#define ll long long
#define End return 0
#define vi vector<int>
#define pb push_back
#define YES printf("YES\n")
#define NO printf("NO\n")
#define min3(a, b, c) min(a, min(b, c))
#define max3(a, b, c) max(a, max(b, c))
#define min4(a, b, c, d) min(min(a, b), min(c, d))
#define max4(a, b, c, d) max(max(a, b), max(c, d))
#define Fors(i, s) for (int i = 0; i < s.size(); i++)
#define all(v) v.begin(), v.end()
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * (b / __gcd(a, b)))
#define Erase(s) s.erase(unique(s.begin(), s.end()), s.end());
//-----------------------------------------------------//

int main()
{
    //int T;cin >> T;while(T--)
    {
        string s;
        cin >> s;
        cout << s[1] << s[2] << s[0];
    }
    return 0;
}

#include <bits/stdc++.h>
using namespace std;

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