a = map(int,input().split()) sum = 0 for i in a: sum += i print(55 - sum)