import sys

x,y = list(map(str,input().split(' ')))
m = str(int(x[::-1])+int(y[::-1]))
print(int(m[::-1]))