Task: Program Execution
Input (English): 3, 4, ['X', 'X', 'U', '3949', '4773', '505', '8333', '2665', 'T', 'u', 'Z', 'I', '7043', '9789', '9189', '6839']
Output (English): U, 8333, Z, 9189