Task: Program Execution
Input (English): 3, 3, ['849', '5549', 'p', 'Z']
Output (English): p