import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { System.out.println((double)calcManhatDistance(sc.nextInt(),sc.nextInt(),sc.nextInt(),sc.nextInt())/2); } static int calcManhatDistance (int x1, int y1, int x2, int y2) { int d = Math.abs(x1-x2)+Math.abs(y1-y2); return d; } static double calcEuclidDistance (double x1, double y1, double x2, double y2) { double d = Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); return d; } }