#include <stdio.h> int main() { double a, b, c; scanf("%lf %lf %lf", &a, &b, &c); if((a+b+c)/3 >= 60) printf("NO"); else printf("YES"); return 0; }