Task: Program Execution
Input (English): 319, n, x, 117, 361, 265, h, z
Output (English): 1, 2, 3, 5, 6, 7, 9