#yuki_481 s=[] b=map(int,raw_input().split()) s=sum(b) print 55-s