# No.63 ポッキーゲーム s = [int(i) for i in input().split()] L = s[0] K = s[1] print(K * (L // (2 * K)))