Task: Program Execution
Input (English): 9523, Y, 9805, R
Output (English): 9523, 9805