Task: Program Execution
Input (English): 2, 6, ['5151', '4039', 'Q', 'W', '9675', '9629', '9273', '7823', '5631', '109', 'W', 'V']
Output (English): 4039, 7823