import java.util.Scanner;

public class Main {
    public static void debug(String str) {
        System.out.println(str);
    }

    public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void debug(String str) {
        System.out.println(str);
    }

    public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    }

} Main public static void debug(String str) {
        System.out.println(str);
    } debug {
        System.out.println(str);
    } System.out.println(str) System.out.println System.out System System.out str String str str public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    } main {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    } int A; A int B; B int C; C try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        } {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc C = sc.nextInt() C sc.nextInt() sc.nextInt sc if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        } A != 5 && A != 7 A != 5 A 5 A != 7 A 7 {
            System.out.println("NO");
            return;
        } System.out.println("NO") System.out.println System.out System System.out "NO" return; if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        } B != 5 && B != 7 B != 5 B 5 B != 7 B 7 {
            System.out.println("NO");
            return;
        } System.out.println("NO") System.out.println System.out System System.out "NO" return; if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        } C != 5 && C != 7 C != 5 C 5 C != 7 C 7 {
            System.out.println("NO");
            return;
        } System.out.println("NO") System.out.println System.out System System.out "NO" return; if (A + B + C != 17) {
            System.out.println("NO");
            return;
        } A + B + C != 17 A + B + C A + B + C A B C 17 {
            System.out.println("NO");
            return;
        } System.out.println("NO") System.out.println System.out System System.out "NO" return; System.out.println("YES") System.out.println System.out System System.out "YES" String[] args args public class Main {
    public static void debug(String str) {
        System.out.println(str);
    }

    public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    }

} public class Main {
    public static void debug(String str) {
        System.out.println(str);
    }

    public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    }

} Main
import java.util.Scanner;

public class Main {
    public static void debug(String str) {
        System.out.println(str);
    }

    public static void main(String[] args) {

        int A;
        int B;
        int C;

        try (Scanner sc = new Scanner(System.in)) {
            A = sc.nextInt();
            B = sc.nextInt();
            C = sc.nextInt();

        }
        if (A != 5 && A != 7) {
            System.out.println("NO");
            return;
        }
        if (B != 5 && B != 7) {
            System.out.println("NO");
            return;
        }
        if (C != 5 && C != 7) {
            System.out.println("NO");
            return;
        }
        if (A + B + C != 17) {
            System.out.println("NO");
            return;
        }

        System.out.println("YES");

    }

}
