#include <iostream>
using namespace std;

long long coin[30010], no[] = {1, 5, 10, 25, 50};

int main(){
	memset(coin, 0, sizeof(coin));
	coin[0] = 1;
	for (int i = 0; i < 5; i++)
		for (int j = no[i]; j <= 30000; j++)
			coin[j] += coin[j-no[i]];
	int n;
	while (scanf("%d", &n) == 1){
        if (coin[n] == 1)
            cout << "There is only 1 way to produce " << n << " cents change.\n";
        else
            cout << "There are " << coin[n] << " ways to produce " << n << " cents change.\n";
    }
	return 0;
}
