import java.util.*;


public class Main{
  
  public static void main(String[] args){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  }
  
 
} import java.util.*; util.* java public class Main{
  
  public static void main(String[] args){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  }
  
 
} Main public static void main(String[] args){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  } main {
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  } ArrayList<Integer> array = new ArrayList<Integer>(); array new ArrayList<Integer>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int val1 = scan.nextInt(); val1 scan.nextInt() scan.nextInt scan int val2 = scan.nextInt(); val2 scan.nextInt() scan.nextInt scan int val3 = scan.nextInt(); val3 scan.nextInt() scan.nextInt scan array.add(val1) array.add array val1 array.add(val2) array.add array val2 array.add(val3) array.add array val3 int five=0; five 0 int seven=0; seven 0 for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    } int i=0; int i=0; i 0 i<array.size() i array.size() array.size array i++ i++ i {
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    } {
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    } if (array.get(i)==5){
            five++;
        } array.get(i)==5 array.get(i) array.get array i 5 {
            five++;
        } five++ five if(array.get(i)==7){
            seven++;
        }else{
            
        } array.get(i)==7 array.get(i) array.get array i 7 {
            seven++;
        } seven++ seven {
            
        } if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    } five==2 && seven==1 five==2 five 2 seven==1 seven 1 {
        System.out.println("YES");
    } System.out.println("YES") System.out.println System.out System System.out "YES" {
        System.out.println("NO");
    } 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){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  }
  
 
} public class Main{
  
  public static void main(String[] args){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  }
  
 
} Main
import java.util.*;


public class Main{
  
  public static void main(String[] args){
    ArrayList<Integer> array = new ArrayList<Integer>();
      
    
    Scanner scan = new Scanner(System.in);
    int val1 = scan.nextInt();
    int val2 = scan.nextInt();
    int val3 = scan.nextInt();
  	
    array.add(val1);
    array.add(val2);
    array.add(val3);
    
   
    int five=0;
    int seven=0;
    
    for (int i=0; i<array.size(); i++){
        if (array.get(i)==5){
            five++;
        }if(array.get(i)==7){
            seven++;
        }else{
            
        }   
    }
    
    if(five==2 && seven==1){
        System.out.println("YES");
    }else{
        System.out.println("NO");
    }
 
  }
  
 
}