l,k=map(int,input().split()) k*=2;ans=0 while l-k>0: l-=k ans+=(k//2) print(ans)