#Write the program you'd like to run below. Q = input().split(" ") N = int(len(Q)) total = 0 for i in range(N): total += int(Q[i]) print(55 - total)