L,K=map(int, input().split()) i=0 Y=0 K2=2*K while L>0: L-=K2 Y+=K print(Y)