Task: Program Execution
Input (English): 1927, 5735, 2941, P, J, 7291, 4449, x, 5817, O, C
Output (English): 1927, 5735, 2941, 7291, 4449, 5817