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