li = map(int, input().split(" ")) print(55 - sum(li))