{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make\nchanges with these coins for a given amount of money.\n\u003cbr\u003e\u003cbr\u003e\nFor example, if we have 11 cents, then we can make changes with one 10-cent coin and one 1-cent coin, two 5-cent coins and one 1-cent coin, one 5-cent coin and six 1-cent coins, or eleven 1-cent coins. So there are four ways of making changes for 11 cents with the above coins. Note that we count that there is one way of making change for zero cent.\n\u003cbr\u003e\u003cbr\u003e\nWrite a program to find the total number of different ways of making changes for any amount of\nmoney in cents. Your program should be able to handle up to 7489 cents."}},{"title":"Input","value":{"format":"HTML","content":"The input file contains any number of lines, each one consisting of a number for the amount of money in cents."}},{"title":"Output","value":{"format":"HTML","content":"For each input line, output a line containing the number of different ways of making changes with the above 5 types of coins."}},{"title":"Examples","value":{"format":"HTML","content":"\u003ctable border\u003d\"1px solid\" width\u003d\"100%\" cellpadding\u003d\"4px\" cellspacing\u003d\"0px\"\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003cth width\u003d\"50%\"\u003eSample Input\u003c/th\u003e\n \u003cth width\u003d\"50%\"\u003eSample Output\u003c/th\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003e\n11\u003cbr\u003e\n\n \u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003e\n4\u003cbr\u003e\n\n \u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003ctr\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003e\n\n26\u003cbr\u003e\n \u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003e\n\n13\u003cbr\u003e\n \u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e"}}]}