Task: Program Execution
Input (English): 4, 8, ['x', '2489', 'k', '669', '1877', '6691', 'X', '9489']
Output (English): 9489, X, 6691, 1877, 669