Task: Program Execution
Input (English): 297, 249, z, 367, w, k, 317, m
Output (English): 1, 2, 3, 4, 6, 7, 9