a,b,c = map(int, input().split())
if (a+b+c)/3 >= 60:
    print("NO")
else:
    print("YES")