import java.util.*;

public class Main {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
} import java.util.*; util.* java public class Main {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N N count5 count5 count7; count7 count5 = count7 = 0 count5 count7 = 0 count7 0 for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        } {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        } N = sc.nextInt() N sc.nextInt() sc.nextInt sc if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            } N == 5 N 5 {
                ++count5;
            } ++count5 count5 if (N == 7){
                ++count7;
            } N == 7 N 7 {
                ++count7;
            } ++count7 count7 if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        } count5 == 2 && count7 == 1 count5 == 2 count5 2 count7 == 1 count7 1 {
            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" sc.close() sc.close sc String[] args args public class Main {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
} public class Main {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
} Main
import java.util.*;

public class Main {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
}