apple_heights=list(map(int,input().split())) # map 会遍历这个空格切片的列表,并将 int 函数应用于列表中的每个元素,从而将每个字符串转换为整数。 taotao_reach=int(input()) count=0 max_reach = taotao_reach + 30 for i in range(len(apple_heights)): if apple_heights[i]>taotao_reach: if apple_heights[i]<=max_reach: count+=1 else: #apple_heights[i]<=taotao_reach: count+=1 print(count)