import java.util.*;
class Main{
        public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    }
} import java.util.*; util.* java class Main{
        public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    }
} Main public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int [] d = new int [3]; d new int [3] 3 d[0] = a d[0] d 0 a d[1] = b d[1] d 1 b d[2] = c d[2] d 2 c Arrays.sort(d) Arrays.sort Arrays d if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO"); (d[0] == 5 && d[1] == 5) && d[2] == 7 (d[0] == 5 && d[1] == 5) d[0] == 5 d[0] d 0 5 d[1] == 5 d[1] d 1 5 d[2] == 7 d[2] d 2 7 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" String [] args args
import java.util.*;
class Main{
        public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    }
}