Task: Program Execution
Input (English): 4, 4, ['g', '3963', 'o', '9635', '8233', '6669', 'i', '5829', '1543', 'E']
Output (English): 5369