n,*a=map(int,open(0).read().split()) r=1 for i in range(n-1): d,c=a[i+1]-a[i],2 while i+c-1