Task: Program Execution
Input (English): 2, 2, ['v', '2971', 'R', '3695', '2501', '7479', 'S', 'n', '283', '9723', 'W', '8089', 'n', 'D', '1647']
Output (English): 2971, 3695, 7479, n, 9723, 8089, D