#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b=0;
cin>>a;
int temp=a;
int cnt=0;
while(temp){
temp=temp/10;
if(temp)cnt++;
}
int temp2=1;
for(int i=1;i<=cnt;i++){
temp2*=10;
}
// cout<<temp2<<endl;
temp=a;
while(temp){
int temp1=temp%10;
temp=temp/10;
b+=temp1*temp2;
temp2/=10;
}
// cout<<a<<" "<<b<<endl;
cout<<a+b;
return 0;
}

京公网安备 11010502036488号