A, B = input().split(" ") if A == "4" or A == "1": if B == "4" or B == "1": print(str(A)+str(B)) else: print(int(A)+int(B)) else: print(int(A)+int(B))