a,b=map(int,input().split()) length=2*b x=a//length if a//length==0: print(0) else: print(x*b)