Task: Program Execution
Input (English): 3, 4, ['N', 'M', 'U', 'v']
Output (English): vU