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