l=gets.chomp.to_i m=gets.chomp.to_i n=gets.chomp.to_i nn=n%25 m=m+n/25 mm=m%4 l=n+m/4 ll=l%10 h=l/10 puts nn+mm+ll+h