B = tuple(map(int, input().split())) ALL = 55 print(ALL - sum(B))