a,b = map(int, input().split()) m = b * 2 if a/m == 0: print(a/2) else: print((a//m)*b)