Task: Program Execution
Input (English): n, z, 349, x, 227, v, 363, n, x
Output (English): 2, 3, 4, 6, 7, 9