B = list(map(int,input().split())) total = 0 for i in B: total += i print(55 - total)