d,*a=map(int,open(0).read().split());r=c=1 for x,y in zip(a,a[1:]):c=1+c*(y-x==d);r+=c>r;d=y-x print(r+1)