#include <iostream>
using namespace std;

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

    if (total >= 60) {
        cout << "NO" << endl;
    }else{
        cout << "YES" << endl;
    }

    return 0;
}