#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; string r = (a+b+c)/3<60?"YES":"NO"; cout<<r<<endl; return 0; }