You are given an integer sequence of length and an integer .
You can perform the following operation as many times as you want. (Possibly, zero)
Your goal is to make the sequence satisfy the following condition.
Find the minimum number of operations required.
The input is given in the following format.
Print the minimum number of operations required to satisfy the given condition.
| 2 | 18 | . |
| 3 | 19 | . |
| 4 | 22 | . |
| 5 | 30 | No additional constraints. |