Loading...

Input

10 1 3

Expected Output

2