import Control.Applicative main=do n<-map read.words<$>getLine;print$55-sum(n::[Int])