package main import ( "fmt" "math" ) func resolve(Xp, Yp int) int { r := math.Sqrt(float64(Xp*Xp + Yp*Yp)) R := 2 * r ret := math.Ceil(R) if ret == R { ret += 1 } return int(ret) } func main() { var Xp, Yp int fmt.Scanf("%d %d\n", &Xp, &Yp) fmt.Println(resolve(Xp, Yp)) }