Task: Program Execution
Input (English): 5, 5, ['783', '7591', '9847', '8181', 'N']
Output (English): N