Task: Program Execution
Input (English): 3, 10, ['r', 'v', '4259', '3257', 'N', '6671', '3349', '8667', 'b', '247', '4473', 'q', '287', '8941', '7217', '4987', 'i', 'Q', '337', 's', 'q', '1803', '3441', '3337', '2055', '6677', 'm']
Output (English): 4259, 287, 3441