print change_problem(40, [25, 10, 5, 20])
print change_problem(40, [1, 5, 10, 25])
print change_problem(40, [1, 10, 25])
print change_problem(99, [100, 2, 1])
print change_problem(117, [1, 5, 10, 25])
print change_problem(200, [185, 1, 20])
print change_problem(200, [185, 1, 20, 3])
print change_problem(400, [250, 225, 220, 205, 201, 120, 40])
print change_problem(631478, [583490, 230935, 92583, 30, 2, 5000])
