Task: Program Execution
Input (English): 8439, O, 6143, P, E, 1729, 9561, U, 1809, 1805, 5005, Q, 8927, 7907, X
Output (English): 1, 3, 6, 7, 9, 10, 11, 13, 14