def rec(x): return int(str(x)[::-1]) x, y = map(int,input().split()) result = rec(rec(x)+rec(y)) print(result)