import std.stdio, std.string, std.array, std.conv, std.math;

void main() {
    double[] pos = readln.chomp.split.to!(double[]);
    double x = pos[0] - pos[2], y = pos[1] - pos[3];
    writefln("%0.8f", hypot(x, y));
}
