k = int(input()) x = int(input()) y = int(input()) vx = (x//k)+1 vy = (y//k)+1 if vx > vy: kk = vx-vy elif vy > vx: kk = vy-vx print (kk)