Task: Program Execution
Input (English): 2, ['2987', '5215', 'n', 'D', 'w', 'C', '7047', 'R']
Output (English): 2987, 5215