n,x,y=map(int,input().split()) s=0 if y%x==1: s=s+y//x+1 v=n-s print(v)
------Input------ 389 1 24 ------Answer----- 365 ------Your output----- 389