print(55 - sum(int(i) for i in input().split()))