#include <iostream>
using namespace std;

int main() {
    
    int a,b,c,result;
    cin >> a >> b >> c;
    result= (a + b + c) / 3;

    if (result >= 60) cout << "NO" << endl;
    else cout << "YES" ;

    return 0;
}