6.

Before: 5 8 13 20 25 30 7
After: 5 0 13 0 25 0 7