arr=list(map(int,input().split())) tmp=sum(arr) print(55-tmp)