Task: Program Execution
Input (English): 1, 4, ['651', 'd', 'U', 'Z', '1669', 'D']
Output (English): Z, U, d, 651