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