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