Task: Program Execution
Input (English): 2, 8, ['4507', '3767', 'H', 'n', '6477', '2877', '3287', '7651', '5703', '8907', 'v', '9743', 'q', '8645', 'x', '1967', '3713']
Output (English): 3767, 8907