#1から10_2 B = list(map(int , input().split())) print(55 - sum(B))