import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} Main public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    } main {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int A = sn.nextInt(); A sn.nextInt() sn.nextInt sn int B = sn.nextInt(); B sn.nextInt() sn.nextInt sn int C = sn.nextInt(); C sn.nextInt() sn.nextInt sn int sum = A + B + C; sum A + B + C A + B + C A B C if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        } sum == 17 sum 17 {
            System.out.print("YES");
        } System.out.print("YES") System.out.print System.out System System.out "YES" {
            System.out.print("NO");
        } System.out.print("NO") System.out.print System.out System System.out "NO" String[] args args public class Main {
    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int A = sn.nextInt();
        int B = sn.nextInt();
        int C = sn.nextInt();

        int sum = A + B + C;
        if(sum == 17){
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
}