Task: Program Execution
Input (English): 4, 4, ['7431', '6789', 'b', '247']
Output (English): 742