Task: Program Execution
Input (English): 3, 5, ['1229', '6637', '697', '8251', 'S', '9927', '317', '1503', 'Q', 'S', 'Q', '7927', 'V', 'I', '2777']
Output (English): 697, 1503, V