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