Task: Program Execution
Input (English): c, 317, z, z, h, 227, 439, x, f
Output (English): 1, 2, 3, 4, 7, 9