Task: Program Execution
Input (English): 6671, U, D, n, 1547
Output (English): 8218