Task: Program Execution
Input (English): 5003, a, 7057, 2489, 3489, 8297, R, Q
Output (English): a, R, Q