import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
} Main public static void main(String[] args){
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    } run {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int C = scanner.nextInt(); C scanner.nextInt() scanner.nextInt scanner if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO"); (A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17 (C == 5 || C == 7) (A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17 (A == 5 || A == 7) A == 5 A 5 A == 7 A 7 (B == 5 || B == 7) B == 5 B 5 B == 7 B 7 (C == 5 || C == 7) C == 5 C 5 C == 7 C 7 A + B + C == 17 A + B + C A + B + C A B C 17 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" public class Main {
    public static void main(String[] args){
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
} public class Main {
    public static void main(String[] args){
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if((A == 5 || A == 7) && (B == 5 || B == 7)  && (C == 5 || C == 7) && A + B + C == 17)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
}
