#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
int ara[N][2];
for(int i=0; i<N; i++){
for(int j=0; j<2; j++){
cin >> ara[i][j];
}
}
vector<double>v;
for(int a=0; a<N; a++){
for(int b=0; b<N; b++){
if(a!=b){
int m, n;
m = abs(ara[a][0] - ara[b][0]);
n = abs(ara[a][1] - ara[b][1]);
double len = sqrt(m*m + n*n);
v.push_back(len);
}
}
}
sort(v.rbegin(), v.rend());
cout << v[0] << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDx2ZWN0b3I+CiNpbmNsdWRlIDxhbGdvcml0aG0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCBOOwoJY2luID4+IE47CglpbnQgYXJhW05dWzJdOwoJZm9yKGludCBpPTA7IGk8TjsgaSsrKXsKCQlmb3IoaW50IGo9MDsgajwyOyBqKyspewoJCQljaW4gPj4gYXJhW2ldW2pdOwoJCX0KCX0KCQoJdmVjdG9yPGRvdWJsZT52OwoJZm9yKGludCBhPTA7IGE8TjsgYSsrKXsKCQlmb3IoaW50IGI9MDsgYjxOOyBiKyspewoJCQlpZihhIT1iKXsKCQkJCWludCBtLCBuOwoJCQkJbSA9IGFicyhhcmFbYV1bMF0gLSBhcmFbYl1bMF0pOwoJCQkJbiA9IGFicyhhcmFbYV1bMV0gLSBhcmFbYl1bMV0pOwoJCQkJZG91YmxlIGxlbiA9IHNxcnQobSptICsgbipuKTsKCQkJCXYucHVzaF9iYWNrKGxlbik7CgkJCX0KCQl9Cgl9Cglzb3J0KHYucmJlZ2luKCksIHYucmVuZCgpKTsKCWNvdXQgPDwgdlswXSA8PCBlbmRsOwoJCglyZXR1cm4gMDsKfQ==