Task: Program Execution
Input (English): 2, 5, ['q', '9481', 'J', 'V', 'P', '7539', '6437', '8219', '9899', '9637', 'M', '6567', '3041']
Output (English): 9481, 6437, 6567