l,k = map(int,input().split()) print((l//(2*k)*k))