A = list(map(int, list(input()))) B = list(map(int, list(input()))) A.reverse() B.reverse() n = len(A) m = len(B) ANS = [0 for _ in range(max(n, m))] for i in range(max(n, m)): if i < min(n, m): ANS[i] = A[i] + B[i] else: if max(n, m) == n: ANS[i] += A[i] else: ANS[i] += B[i] if ANS[i] >= 10: if i < max(n, m) - 1: ANS[i + 1] += 1 ANS[i] = ANS[i] % 10 if ANS[-1] >= 10: ANS[-1] %= 10 ANS.append(1) ANS.reverse() print(''.join(map(str, ANS)))