Task: Program Execution
Input (English): 4, 5, ['N', '8747', '3021', 'F', '3825']
Output (English): 3825