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