t = list(input().split()) print(55-(sum(int(i) for i in t)))