Task: Program Execution
Input (English): 8155, 5115, 1839, Y, x, w, B
Output (English): 8155, 5115, 1839