B = [int(i) for i in input().split()] print(55 - sum(B))