import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 } main {
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s1 = sc.nextInt(); s1 sc.nextInt() sc.nextInt sc int s2 = sc.nextInt(); s2 sc.nextInt() sc.nextInt sc int s3 = sc.nextInt(); s3 sc.nextInt() sc.nextInt sc boolean seven = false; seven false if(s1==7||s2==7||s3==7) seven =true; s1==7||s2==7||s3==7 s1==7||s2==7||s3==7 s1==7 s1 7 s2==7 s2 7 s3==7 s3 7 seven =true seven true boolean five = false; five false if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true; s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5 s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5 s1==5&&s2==5 s1==5 s1 5 s2==5 s2 5 s2==5&&s3==5 s2==5 s2 5 s3==5 s3 5 s3==5&&s1==5 s3==5 s3 5 s1==5 s1 5 five = true five true if(seven&&five) System.out.println("YES");
   else System.out.println("NO"); seven&&five seven five 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 sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();
   int s3 = sc.nextInt();
   
   boolean seven = false;
   if(s1==7||s2==7||s3==7) seven =true;
   
   boolean five = false;
   if(s1==5&&s2==5||s2==5&&s3==5||s3==5&&s1==5) five = true;
 
   if(seven&&five) System.out.println("YES");
   else System.out.println("NO");
 }
}