CF11A Increasing Sequence

Description

A sequence $ a_{0},a_{1},...,a_{t-1} $ is called increasing if $ a_{i-1}

Input Format

The first line of the input contains two integer numbers $ n $ and $ d $ ( $ 2

Output Format

Output the minimal number of moves needed to make the sequence increasing.