a=map(int,input().split()) total=sum(a) print(55-total)