include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int f(vector[HTML_REMOVED]& v) {
vector[HTML_REMOVED] c;
for (auto it = v.begin(); it != v.end() - 1; ++it) {
auto x = it - (it + 1);
if (x < 0)
x = -x;
c.push_back(x);
}
sort(c.begin(), c.end());
return *(c.end()-1);
}
int main() {
int n;
int m;
cin>>n;
vector[HTML_REMOVED] v;
while(n–){
cin>>m;
v.push_back(m);
}
cout<<f(v);
}