infty=1000001 t=0 b=[1,1] for n in range(2,101): b=[1]+[min(b[k-1]+b[k],infty) for k in range(1,n)]+[1] t+=b.count(infty) print t