Task: Program Execution
Input (English): 267, 123, y, 261, 251, z, 397, h, p
Output (English): 1, 2, 3, 5, 6, 7, 9