Task: Program Execution
Input (English): 5, 7, ['F', 'P', 'V', '1517', '8165', '8291', 'O', 'O', '3943', '2079', 'w', '5675', '1525', '8679', '5885', 'P', 'g', 'Q', '4453']
Output (English): O, 8291, 8165