#537. 香烟(cigarrete)

香烟(cigarrete)

Background

Special for beginners, ^_^

Description

你现在有n支香烟。香烟抽完后有香烟蒂头。k个香烟蒂头可以换一支新的香烟。(k > 1)现在一开始有n支香烟,问最多能抽多少支烟?只能利用你现有的烟,不能向别人借烟。

Format

Input

一行,两个整数,n和k。两个整数均在longint范围之内,答案也在longint范围之内。

Output

输出仅一行,一个整数,表示最多能抽多少支烟。

Samples

4 3
5

Limitation

1s, 1024KiB for each test case.