Task: Program Execution
Input (English): 4, 6, ['7177', 'P', '1661', 'C', '3181', 'U', '6311', 'B', '1607', 'I', 'P']
Output (English): C, 3181, U