import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    } main {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int f = 0; f 0 int s = 0; s 0 for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        } {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            } num == 5 num 5 {
                f++;
            } f++ f if (num == 7) {
                s++;
            } num == 7 num 7 {
                s++;
            } s++ s sc.close() sc.close sc boolean ans = false; ans false if (f == 2 && s == 1) {
            ans = true;
        } f == 2 && s == 1 f == 2 f 2 s == 1 s 1 {
            ans = true;
        } ans = true ans true System.out.println(ans ? "YES" : "NO") System.out.println System.out System System.out ans ? "YES" : "NO" ans "YES" "NO" String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    }
} public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int f = 0;
        int s = 0;

        for (int i = 0; i < 3; i++) {
            int num = sc.nextInt();
            if (num == 5) {
                f++;
            } else if (num == 7) {
                s++;
            }
        }

        sc.close();

        boolean ans = false;
        if (f == 2 && s == 1) {
            ans = true;
        }

        System.out.println(ans ? "YES" : "NO");

    }
}