numbers = [int(x) for x in input().split()] print(55-sum(numbers))