Task: Program Execution
Input (English): 699, U, J, a, 2819, 1415, D, d
Output (English): 699, 2819, 1415