l,m,n=gets(p).split.map &:to_i d=(b=(100*l+25*m+n)%1000)%100 p b/100+d/25+d%25