Task: Program Execution
Input (English): Y, B, 3833, 8607, 2851, 1895, 3729, q, r, f, V, 6235, 2891
Output (English): 3833, 8607, 2851, 1895, 3729, 6235, 2891