B = list(map(int, input().split())) ans = 55 - sum(B) print(ans)