Task: Program Execution
Input (English): 3797, 4139, u, P, 9199, 1541, d
Output (English): 3797, 4139, 21, 16, 9199, 1541, 4