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

public class Main{

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

     public static void main(String []args){
       Scanner scanner = new Scanner(System.in);
       int n1 = 0;
       int n2 = 0;
      
       
       for(int i=0;i<3;i++) 
       {
           int temp=scanner.nextInt();
           if(temp==5)
           n1++;
           else if(temp==7)
           n2++;
       }
       
       if(n1==2 && n2==1)
       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 scanner = new Scanner(System.in);
       int n1 = 0;
       int n2 = 0;
      
       
       for(int i=0;i<3;i++) 
       {
           int temp=scanner.nextInt();
           if(temp==5)
           n1++;
           else if(temp==7)
           n2++;
       }
       
       if(n1==2 && n2==1)
       System.out.println("YES");
       else System.out.println("NO");
       
       
     }
}