Task: Program Execution
Input (English): 2, 7, ['7789', 'P', 'I', '2675', '8761', 'e', '561', '6015', 'S', 'Q', 'L', 'J', 'l', '7899', 'X']
Output (English): P, S