Task: Program Execution
Input (English): 6, 10, ['7967', '5201', '2259', '8139', 'w', 'U', 'X', 'e', 'K', '9843', 'd', 'D', 'x']
Output (English): 9843, K, e, X, U