#include<bits/stdc++.h> using namespace std; int n,g,s,b; int main(){ cin>>n; g=n%10; s=n%100/10; b=n/100; cout<<b+s*10+g*100; return 0; }