#include<iostream>
using namespace std;
int main(){
int a = 0;
int b = 0;
int c = 0;
cin>>a>>b>>c;
if((a+b+c)/3>=60){
cout <<"NO"<< endl;
}
else{
cout <<"YES"<< endl;
}
system("pause");
return 0;
}