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