Task: Program Execution
Input (English): 2, ['k', 'p', '6269', 'M', '6887', 'B']
Output (English): k, p