Task: Program Execution
Input (English): 2, 5, ['l', 'E', '729', 'U', 'z', '9729', '3247']
Output (English): zU927E