Task: Program Execution
Input (English): 2187, 5013, n, h, K, 7473, 9183, 2367, 5291, W, M, X, 6889, 8771, J, F
Output (English): 2187, 5013, 7473, 9183, 2367, 5291, 6889, 8771