#include<bits/stdc++.h> using namespace std; int main( ) { int x,ge,shi,bai,y; cin>>x; bai=x%10; shi=x/10%10; ge=x/100%10; y=bai*100+shi*10+ge; cout<<y; return 0; }