#include <stdio.h> int main() { int a=0,b=0; scanf("%d",&a); int c=a; while (c) { int mod=c%10; b=b*10+mod; c/=10; } printf("%d",a+b); return 0; }