N = list(map(int, input().split())) a = 55 - sum(N) print(a)