Task: Program Execution
Input (English): 4, 4, ['U', 'e', 'G', '3359', 'E']
Output (English): 3359