Task: Program Execution
Input (English): 5177, 4785, 4741, 3733, Q, 6459, 1853, x, Q, D, H, 6695, 2505, w, 1497, 1563, 2691, K, 6547, 9871, 7433, 1083, 7783, 2091
Output (English): 5177, 4785, 4741, 3733, 6459, 1853, 6695, 2505, 1497, 1563, 2691, 6547, 9871, 7433, 1083, 7783, 2091