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