import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int m = scan.nextInt();
        int c = scan.nextInt();
        int e = scan.nextInt();
        int totalScore = m + c + e;
        if(totalScore / 3 < 60) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}