Task: Program Execution
Input (English): 4, 5, ['3001', '661', 'S', 'N', '7919']
Output (English): 9197N