#include int x,a[9999],v=1,*q=a,*p=q;main(){for(scanf("%d%d",&x,p);~scanf("%d",++p);)x=p-q>=2&&*p+*q==*++q*2?x+1:2,v=v