Task: Program Execution
Input (English): k, r, 5987, R, Q, B, 593, O, 9597, e, e, y, T, 7405, E, 2437, x, 9641
Output (English): 5987, 593, 9597, 7405, 2437, 9641