Task: Program Execution
Input (English): 5845, 3627, 2667, 2197, Y, D
Output (English): Y, D, 5845, 3627, 2667, 2197