Task: Program Execution
Input (English): 4989, 6617, 7143, 7209, 9187, R, 3971, 1523, 7851, z, 1623, y, 6943, Q, W, 1901, k, 9141, 427, u, g, e, 2307
Output (English): 1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 18, 19, 23