while True:
try:
s1, s2 = input(), input()
l1, l2 = len(s1), len(s2)
if l1 < l2:
s1 = '0' * (l2-l1) + s1
elif l1 > l2:
s2 = '0' * (l1-l2) + s2
lst1, lst2 = [int(i) for i in s1[::-1]], [int(j) for j in s2[::-1]]
l, res, m = len(lst1), [], 0
for i in range(l):
n = (lst1[i] + lst2[i] + m) % 10
m = (lst1[i] + lst2[i] + m) // 10
res.append(n)
if m:
res.append(m)
print(''.join(map(str, reversed(res))))
except:
break