N = input().split() num = 0 for i in range(len(N)): num += int(N[i]) print(55 - num)