#38480: python


10213204@gm.ptivs.tn.edu.tw (:))


l=list(map(int,input().split()))
h=int(input())
print(sum((lambda x:x<=h+30)(i) for i in l))