AppHeight = map(int,input().split()) TTHeight = int(input()) count = 0 if 100<TTHeight<120: for item in AppHeight: if 100<=item<=200: if TTHeight+30>=item: count+=1 print(count)