s = [int(i) for i in input().split()] print(55-sum(s))