https://www.acmicpc.net/problem/1357
using System;
class Program
{
static int Rev(int n){
int num=0;
if(n<10) num=n;
else if(n<100){
int a=n%10;
int b=n/10;
num=a*10+b;
}
else if(n<1000){
int a=n%10;
n/=10;
int b=n%10;
n/=10;
int c=n%10;
num=a*100+b*10+c;
}
else if(n<10000){
int a=n%10;
n/=10;
int b=n%10;
n/=10;
int c=n%10;
n/=10;
int d=n%10;
num=a*1000+b*100+c*10+d;
}
return num;
}
static void Main() {
string[] s=Console.ReadLine().Split(' ');
int x=int.Parse(s[0]);
int y=int.Parse(s[1]);
Console.Write("{0}",Rev(Rev(x)+Rev(y)));
}
}