Task: Program Execution
Input (English): 4, 4, ['4421', '1995', '489', '7909', '4027', 'X', 'I', 'J', 'J', '9809', '7025', '5835']
Output (English): 7909