Task: Program Execution
Input (English): 2, 3, ['1367', 'g', 'E', 'T', '8673', '3773', '741']
Output (English): Eg