Task: Program Execution
Input (English): 2435, C, 7287, Z, R, S, q, r, 6701, 8445, 3397, q, 6983, 8639, 7219, 7999, Q, 7667, 1005, 9151
Output (English): 2435, 7287, 6701, 8445, 3397, 6983, 8639, 7219, 7999, 7667, 1005, 9151