//Think simple yet elegant.
#include <bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll  long long
#define all(v) v.begin(),v.end()
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define pi pair<int,int>
#define REP(i,n) for(int i=0;i<n;i++)
const int N = 2e5+10;
const ll mod = 1e9+7;
 
void run_case(){
	string s;
	cin >> s;
	string tt="";
	tt+=s[1];
	tt+=s[2];
	tt+=s[0];
	cout<<tt;



}

int main(){
	fast;
	int q;
	//cin >> q;
	q=1;
	while(q--){ 
		run_case();
	}
	
}


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

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