Task: Program Execution
Input (English): 2, ['i', 'w', 'P', 'm', 'P', 't', 'p']
Output (English): i, w