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