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

public class Main{
  public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
  public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  }
} Main public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  } main {
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int read; read int five=0 five 0 seven=0; seven 0 for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    } {
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    } read = sc.nextInt() read sc.nextInt() sc.nextInt sc if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      } read==5 read 5 {
        five++;
      } five++ five if(read==7){
        seven++;
      } read==7 read 7 {
        seven++;
      } seven++ seven String ans ="NO"; ans "NO" if(five==2||seven==1){
      ans="YES";
    } five==2||seven==1 five==2 five 2 seven==1 seven 1 {
      ans="YES";
    } ans="YES" ans "YES" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
  public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  }
} Main
import java.io.*;
import java.util.*;

public class Main{
  public static void main(String[] args) throws IOException{
    Scanner sc =new Scanner(System.in);
    
    int read;
    int five=0,seven=0;
    for(int i=0;i<3;i++){
            read = sc.nextInt();
      if(read==5){
        five++;
      }
      else if(read==7){
        seven++;
      }
    }
    String ans ="NO";
    if(five==2||seven==1){
      ans="YES";
    }
    
    System.out.println(ans);
  }
}