Task: Program Execution
Input (English): 4, 4, ['r', '951', 'J', 'z', '3839', 'S', '215', '1743', '5165', 'U', 'T']
Output (English): z