Task: Program Execution
Input (English): 3, 4, ['q', 'Z', '3727', '1559', '6477', '7951']
Output (English): 3727, 1559