Task: Program Execution
Input (English): 2, 3, ['2467', '3123', '973', 'T']
Output (English): 3123, 973