#include<bits/stdc++.h>
using namespace std;
int main(){
  char a,b,c;
  cin>>a>>b>>c;
  cout<<b<<c<<a;
  return 0;
}

#include <bits/stdc++.h>
#include <cmath>

using namespace std;
using ll = long long;

#define for(i, a, b) for (int i=(a); i < (b); i++)
#define rep(i, n) for(i, 0, n)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()

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

