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