Task: Program Execution
Input (English): n, t, z, 129, m, 7
Output (English): 1, 2, 7, 9