Task: Program Execution
Input (English): 6, 9, ['X', '9041', '5139', 'i', '9649', '2881', 'G', '9645', '3197', 'd', '3047', 'V', 'N']
Output (English): 3197, 9645, G, 2881