while True:#重複
try:
l = list(map(int, input().split()))#輸入+陣列化+數字化
n = l[0]#總共有幾個成績
total = 0#總分初始值
for i in range(1, len(l)):
total += l[i]#總分
avg = total / n#平均
if avg > 59:#判斷是否不及格
print("no")#輸出
else:
print("yes")#輸出
except EOFError:
break