Task: Program Execution
Input (English): 2, 3, ['a', '3489', '6999', '4701', '749', 'C', 'd', 'B', '6495', '5305', '2849']
Output (English): 3489, 749, B, 2849