Task: Program Execution
Input (English): 4, 4, ['5831', 'i', 'C', 'P', 'M', 'H', 'M', '6665', '6577', 'h', '7169', '119']
Output (English): P