Task: Program Execution
Input (English): 2, 3, ['d', 'P', 'a', '855', 'P', 's', '5847']
Output (English): P, a