#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,y;
cin>>n;
x=n/100;
y=n%100;
cout<<y*100+x;
}
/**************************************************************
Problem: 1616
User: toughuatao1
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/