package main import . "fmt" func main() { var x,y int64 Scan(&x,&y) for d:=int64(1);;d++ { if d*d>4*(x*x+y*y) { Println(d) return } } }