Task: Program Execution
Input (English): 2, 3, ['6269', '5431', 'g', 'M']
Output (English): g, 5431