#include using namespace std;int main(){int N,a=1,i,j;cin>>N;int A[N];for(i=0;i>A[i];for(j=i;j&&A[j-1]+A[i]==A[i-1]+A[j];j--)a=max(a,i-j+2);}cout<