a = input().split() n = int(a[0]) x = int(a[1]) y = int(a[2]) b = n - y//x if y%x > 0: print(b-1) elif b<0: print('0') else: print(b)