L,K=map(int,input().split()) cnt=0 if L-2*K>0: cnt=(L//2*K)*K print(cnt) else :print("0")