Task: Program Execution
Input (English): 3, ['N', 'X', 'J', 'S', 'v', 'N', '1191', 'Z', 'D']
Output (English): N, S, 1191