ls=input().split() a=55 for i in range(9): a=a-int(ls[i]) print(a)