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