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