#include <iostream>
using namespace std;

int main() {
    int x;
    cin >> x;
    int first_two = x / 100;
    int last_two = x % 100;
    int y = last_two * 100 + first_two;
    cout << y << endl;
    return 0;
}    
/**************************************************************
	Problem: 1616
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/