Task: Program Execution
Input (English): 4, 3, ['2967', 'p', 'd', 'U', '9623', 'A', 'X', '6745', '317', 's', 't', 'U', 'p', '3445', 's', '9469', 'v', '6851', '4539', 'h', 'M']
Output (English): U, X, s, p, 9469, 4539