#include<bits/stdc++.h>
using namespace std;
int n;
int xl[1000001];
int r=1;
int tc(int a){
int re=1;
int d=1;
for(int i=1;i<=n;i++){
if(xl[i+1]>xl[i]){
d++;
}else{
if(d>re){
re=d;
}
d=1;
}
}
return re;
}
int main(){
cin>>n;
for(int i=1;i<=n;i++){
cin>>xl[i];
}
for(int i=1;i<=n;i++){
int now=xl[i];
xl[i]=xl[i-1]+1;
int d=tc(i);
if(d>r){
r=d;
}
xl[i]=xl[i+1]-1;
d=tc(i);
if(d>r){
r=d;
}
xl[i]=now;
cout<<r<<endl;
}
cout<<r;
return 0;
}