Task: Program Execution
Input (English): 3, ['p', 'n', 'B', 'i', '1111', '5473']
Output (English): p, n, B