package main import . "math" import . "fmt" func main() { var a,b,c,d float64 Scan(&a,&b,&c,&d) Println((Abs(a-c)+Abs(b-d))/2) }