Task: Program Execution
Input (English): 8213, 1165, k, f, P, 4291, r, 6291, P, a, 637, 2709, 6281, 2475, 3801, R, 2547, S
Output (English): 8213, 1165, 4291, 6291, 637, 2709, 6281, 2475, 3801, 2547