#include using namespace std; int main() { int L,M,N;printf("%d\n%d\n%d",&L,&M,&N); int money=L*100+M*25+N; int ans=0; ans+=money/1000;money-=(money/1000)*1000; ans+=money/100;money-=(money/100)*100; ans+=money/25;money-=(money/25)*25; ans+=money; printf("%d",ans); }