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