L,K=map(int,input().split()) y=0 while 1: L-=K*2 if L<=0:break y+=K print(y)