B=list(map(int,input().split())) S = int(55 - sum(B)) print(S)