Task: Program Execution
Input (English): 7, 7, ['C', '6059', 'I', '1219', '7563', '7799', '5003']
Output (English): 5003