Task: Program Execution
Input (English): 3, 4, ['2939', 'B', '6315', '5001', '1085', '3911', 'F']
Output (English): 5001, 6315