{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"\u003cp\u003e\nFatin is going to give salami to his girlfriends. He has infinite amount of six types of notes which are 1tk , 2tk , 5tk, 10tk , 50tk, 100tk . But he doesn\u0027t like to give more number of notes to his girlfriends.\u003cbr /\u003e If he decided to give \u003cb\u003eN\u003c/b\u003e tk to one of his girlfriends , you are asked to tell What is the \u003cb\u003eminimum number of notes\u003c/b\u003e he will give to that girlfriend having total sum \u003cb\u003eN\u003c/b\u003e.\n\u003c/p\u003e\n\n\n\u003ch3\u003eInput\u003c/h3\u003e\n\u003cp\u003e \n\nThe first line contains an integer \u003cb\u003eT\u003c/b\u003e, total number of girlfriends. Then follow \u003cb\u003eT\u003c/b\u003e lines, each line contains an integer \u003cb\u003eN\u003c/b\u003e. \n\u003c/p\u003e\n\n\u003ch3\u003eOutput\u003c/h3\u003e\n\u003cp\u003eFor each girlfriend, print the smallest number of notes Fatin will give , in a new line.\u003c/p\u003e\n\n\u003ch3\u003eConstraints\u003c/h3\u003e\n\u003cul\u003e\u003cli\u003e1 \u003cb\u003e≤\u003c/b\u003e \u003cb\u003eT\u003c/b\u003e \u003cb\u003e≤\u003c/b\u003e 1000\u003c/li\u003e\n\u003cli\u003e1 \u003cb\u003e≤\u003c/b\u003e \u003cb\u003eN\u003c/b\u003e \u003cb\u003e≤\u003c/b\u003e 1000000\u003c/li\u003e\n\u003c/ul\u003e"}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3 \n1200\n500\n242\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e12\n5\n7\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}