n=int(input()) l=list(map(float,input().split())) c=0 for i in l: if 90<i<140: c+=1 else: c=0 print(c)