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