Task: Program Execution
Input (English): 7751, P, 4717, q, J, 4423, R, 497, N, 6555, x, 2839, B, 9251
Output (English): 7751, 4717, 4423, 497, 6555, 2839, 9251