Task: Program Execution
Input (English): 3, 4, ['1785', '281', '2651', '9049', '4439', '1507', '5429', 'V', '491', '1127']
Output (English): 2651, 9049