Task: Program Execution
Input (English): 3, 6, ['x', 'O', '4635', 'O', '1317', '7187']
Output (English): 7187, 1317, O, 4635