Task: Program Execution
Input (English): 2, 3, ['P', 'X', 'U', 'O', '211', 'D', 'n']
Output (English): X, U