Task: Program Execution
Input (English): R, G, g, 3031, 2747, C, W, 6921, 5601, 5677, 6387, 5171, P, 6013, a, 8429, z, 6641, B, Q, O, L, 2267, F
Output (English): 3031, 2747, 6921, 5601, 5677, 6387, 5171, 6013, 8429, 6641, 2267