package main import ( "fmt" ) func main(){ var l, k int fmt.Scan(&l, &k) cnt := l / (k * 2) yu := k * cnt if l % (k * 2) == 0 { yu = 0 } fmt.Println(yu) }