I have written a program:
N = int(input()) X, Y, Z = map(int, input().split()) change = [X, Y, Z] def changes(amount, coins): ways = [0] * (amount + 1)