Task: Program Execution
Input (English): 5097, 3815, 9365, 8251, D, l, U
Output (English): D, l, U, 5097, 3815, 9365, 8251