Task: Program Execution
Input (English): 3063, 4171, 5453, Q, u, 6191, r, 9255, r, R, 5707, 2287, r, K, 9669, q, 9369
Output (English): Q, u, r, r, R, r, K, q