#include <iostream> using namespace std; int main() { int a, b; cin>>a; int c=a; while(c){//反转a b=b*10+c%10; c/=10; } cout<<a+b; }