Task: Program Execution
Input (English): 3, 6, ['U', 'p', 'Z', '5453', 'L', 'M', 'h', '3963', '351', 'Q', '573', 'n', 'o', 'R', '2797', '3335']
Output (English): Z, 351, 2797