Task: Program Execution
Input (English): 1243, 391, P, 2107, D, 1791, 8311, 3087, n
Output (English): P, D, n, 1243, 391, 2107, 1791, 8311, 3087