Task: Program Execution
Input (English): n, z, 295, y, 415, 219
Output (English): 1, 2, 4, 5, 9