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