Task: Program Execution
Input (English): 1, 6, ['B', '4945', '9025', 'V', '8339', '1243', 'S', 'X', '4843', '9783', '5335', '9407', '7743', 'h', '7387', '9781', 'V']
Output (English): 1243, 8339, V, 9025, 4945, B