Jump King Choi Junmin

Starting from 0 with jumps of exactly k in either direction, count how many integers from a to b are multiples of k.

Easy2MathNo attempts yetTime limit1sMemory limit256 MB

Problem

Junmin likes to jump. To test his jumping power, Changyoung laid out a number line and placed one chocolate on every integer coordinate from aa to bb.

Junmin always starts at coordinate 00. If his jumping power is kk, one jump takes him from his current coordinate to the coordinate k-k or +k+k away. Every jump covers exactly kk. If a chocolate sits at coordinate 00, he eats it before he starts jumping.

Junmin is addicted to chocolate, so he stepped onto the number line to collect all of it. He ate a huge breakfast, so he can jump an unlimited number of times. Find the largest number of chocolates Junmin can collect with jumping power kk.

Input

The input is a single line. It contains the jumping power kk (1k10181 \le k \le 10^{18}) and the start coordinate aa and end coordinate bb of the chocolate range (1018ab1018-10^{18} \le a \le b \le 10^{18}), given as integers separated by spaces.

Output

Print the largest number of chocolates Junmin can collect on one line.

Hint

The input values and the answer go past the 32 bit integer range. In C or C++, use the 64 bit type long long (format string %lld).