import java.util.*;
import java.io.*;

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

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  }
}
   import java.util.*; util.* java import java.io.*; io.* java public class Main {
  
 public static void main(String[] args){
    Scanner s = new Scanner(System.in);

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  }
} Main public static void main(String[] args){
    Scanner s = new Scanner(System.in);

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  } main {
    Scanner s = new Scanner(System.in);

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

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  }
} public class Main {
  
 public static void main(String[] args){
    Scanner s = new Scanner(System.in);

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  }
} Main
import java.util.*;
import java.io.*;

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

        int[] a = new int[3];
        a[0] = s.nextInt();
        a[1] = s.nextInt();
        a[2] = s.nextInt();
        Arrays.sort(a);
        if (a[0] == 5 && a[1]== 5 && a[2] == 7) System.out.println("YES");
        else System.out.println("NO");
  }
}
  
