Task: Program Execution
Input (English): 3, 5, ['1731', '6431', 'd', '309', '1965', 'v', 'X', '895', 'C', 'x', '3469', 'W']
Output (English): d, 309, 1965