read *,n100,n25,n1 ntotal = mod((n100*100+n25*25+n1*1),1000) print '(i0)',(ntotal/100)+(mod(ntotal,100)/25)+mod(ntotal,25) end