class Problem0481: def solve(this): b = map(int, input().split()) print(55 - sum(b)) if __name__ == "__main__": problem = Problem0481() problem.solve()