score = list(map(int, input().split()))
print("YES" if sum(score) / 3 < 60.0 else "NO")