Task: Program Execution
Input (English): u, d, N, M, 2605, 2565, 7931
Output (English): u, d, N, M, 2605, 2565, 7931