Task: Program Execution
Input (English): 3, 3, ['2703', '3211', '1671', 'C', 'P', '3539', '9811', '8799', '7621', '9699', 'k', 'e', '7729', '7015']
Output (English): 1671