import java.util.*;
 
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      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 n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      System.out.println("YES");
    } else{
      System.out.println("NO");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      System.out.println("YES");
    } else{
      System.out.println("NO");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      System.out.println("YES");
    } else{
      System.out.println("NO");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n1 = sc.nextInt(); n1 sc.nextInt() sc.nextInt sc int n2 = sc.nextInt(); n2 sc.nextInt() sc.nextInt sc int n3 = sc.nextInt(); n3 sc.nextInt() sc.nextInt sc int[] array = {n1,n2,n3}; array {n1,n2,n3} n1 n2 n3 int matchCount1 = 0; matchCount1 0 int matchCount2 = 0; matchCount2 0 for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    } int val array {
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    } {
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    } if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      } val == 5 val 5 {
        matchCount1++;
      } matchCount1++ matchCount1 if(val == 7){
        matchCount2++;
      } val == 7 val 7 {
        matchCount2++;
      } matchCount2++ matchCount2 if(matchCount1 == 2 && matchCount2 == 1){
      System.out.println("YES");
    } else{
      System.out.println("NO");
    } matchCount1 == 2 && matchCount2 == 1 matchCount1 == 2 matchCount1 2 matchCount2 == 1 matchCount2 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){
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      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 n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      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 n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount1 = 0;
    int matchCount2 = 0;
    for(int val : array){
      if(val == 5){
        matchCount1++;
      }else if(val == 7){
        matchCount2++;
      }
    }
    
    if(matchCount1 == 2 && matchCount2 == 1){
      System.out.println("YES");
    } else{
      System.out.println("NO");
    }
  }
}