#include<bits/stdc++.h>
using namespace std;
int main(){
    int x,a,b,c;
    cin>>x; 
    a=x%10; 
    b=x/10%10;
    c=x/100;
    cout<<x+a*100+b*10+c*1;
}
/**************************************************************
	Problem: 1020
	User: fhjdghj
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/