#include<bits/stdc++.h> using namespace std; long long nways[30005]; int coins[7]={1,5,10,25,50}; void init() { for(int i=0;i<5;i++) { for(int j=coins[i],k=0;j<=30005;j++,k++) { nways[j]+=nways[k]; } } } int main() { long long cents; nways[0]=1; init(); while(scanf("%lld",¢s)==1) { if(nways[cents]==1) { printf("There is only 1 way to produce %lld cents change.\n",cents); } else if(nways[cents]>1) { printf("There are %lld ways to produce %lld cents change.\n",nways[cents],cents); } } return 0; }