Task: Program Execution
Input (English): 2, 2, ['6621', 'P']
Output (English): P