import java.util.*;
import java.lang.*;
import java.io.*;
class A406 {
public static void main
(String[] args
) { int[][] matrix;
double maxDistance = 0;
double distance;
Scanner scanner
= new Scanner
(System.
in); int m = scanner.nextInt();
matrix = new int[2][m];
for (int i = 0; i < 2; i++)
for (int j = 0; j < m; j++)
matrix[i][j] = scanner.nextInt();
for (int i = 0; i < m; i++) {
for (int j = i + 1; j < m; j++) {
distance
= Math.
sqrt((matrix
[0][j
] - matrix
[0][i
]) * (matrix
[0][j
] - matrix
[0][i
]) + (matrix
[1][j
] - matrix
[1][i
]) * (matrix
[1][j
] - matrix
[1][i
])); if (distance > maxDistance) {
maxDistance = distance;
}
}
}
System.
out.
println(maxDistance
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBBNDA2IHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBpbnRbXVtdIG1hdHJpeDsKICAgICAgICBkb3VibGUgbWF4RGlzdGFuY2UgPSAwOwogICAgICAgIGRvdWJsZSBkaXN0YW5jZTsKICAgICAgICBTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludCBtID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgbWF0cml4ID0gbmV3IGludFsyXVttXTsKCiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCAyOyBpKyspCiAgICAgICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgbTsgaisrKQogICAgICAgICAgICAgICAgbWF0cml4W2ldW2pdID0gc2Nhbm5lci5uZXh0SW50KCk7CgogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbTsgaSsrKSB7CiAgICAgICAgICAgIGZvciAoaW50IGogPSBpICsgMTsgaiA8IG07IGorKykgewogICAgICAgICAgICAgICAgZGlzdGFuY2UgPSBNYXRoLnNxcnQoKG1hdHJpeFswXVtqXSAtIG1hdHJpeFswXVtpXSkgKiAobWF0cml4WzBdW2pdIC0gbWF0cml4WzBdW2ldKSArIChtYXRyaXhbMV1bal0gLSBtYXRyaXhbMV1baV0pICogKG1hdHJpeFsxXVtqXSAtIG1hdHJpeFsxXVtpXSkpOwogICAgICAgICAgICAgICAgaWYgKGRpc3RhbmNlID4gbWF4RGlzdGFuY2UpIHsKICAgICAgICAgICAgICAgICAgICBtYXhEaXN0YW5jZSA9IGRpc3RhbmNlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obWF4RGlzdGFuY2UpOwogICAgfQp9