Task: Program Execution
Input (English): 5, 6, ['u', '1499', '3645', 'q', '8391', 'W']
Output (English): W1938