import java.util.*;
 public 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   };
 }; import java.util.*; util.* java public 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   };
 } 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   } main {
     Scanner sc = new Scanner(System.in);
     int A = sc.nextInt();
     int B = sc.nextInt();
     int C = sc.nextInt();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   } 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 if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     } (A+B+C)!=17 (A+B+C) A+B+C A B C 17 {
       System.out.println("NO");
     } System.out.println("NO") System.out.println System.out System System.out "NO" if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     } A != 7 && B != 7 && C != 7 A != 7 && B != 7 && C != 7 A != 7 A 7 B != 7 B 7 C != 7 C 7 {
       System.out.println("NO");
     } System.out.println("NO") System.out.println System.out System System.out "NO" if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     } A != 5 && B != 5 && C != 5 A != 5 && B != 5 && C != 5 A != 5 A 5 B != 5 B 5 C != 5 C 5 {
       System.out.println("NO");
     } System.out.println("NO") System.out.println System.out System System.out "NO" {
       System.out.println("YES");
     } System.out.println("YES") System.out.println System.out System System.out "YES" String[] args args public 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   };
 } public 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   };
 } Main
import java.util.*;
 public 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();
     if ((A+B+C)!=17) {
       System.out.println("NO");
     } else if(A != 7 && B != 7 && C != 7) {
       System.out.println("NO");
     } else if(A != 5 && B != 5 && C != 5) {
       System.out.println("NO");
     } else {
       System.out.println("YES");
     };
   };
 };