#include<bits/stdc++.h>
using namespace std;
int main() {
	int x,a,b,h;
	scanf("%d",&x);
	a=x/100;
	b=x%100;
	h=b*100+a;
	printf("%d",h);
    return 0;
}

/**************************************************************
	Problem: 1616
	User: huangcanwu
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/