package main import . "fmt" import . "sort" func main() { var a,b int Scan(&a,&b) c:=Search(a,func(i int)bool{ x:=i/b*b return x-a+x<=b }) Println(c*b) }