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