import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  }
} Main public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  } main {
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer Haiku[] = new Integer[3]; Haiku new Integer[3] 3 int sum = 0; sum 0 for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    } int i = 0; int i = 0; i 0 i < Haiku.length i Haiku.length Haiku Haiku.length i++ i++ i {
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    } {
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    } Haiku[i] = scanner.nextInt() Haiku[i] Haiku i scanner.nextInt() scanner.nextInt scanner sum += Haiku[i] sum Haiku[i] Haiku i String ans = "NO"; ans "NO" if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    } sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7) sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7) sum == 17 sum 17 Arrays.asList(Haiku).contains(5) Arrays.asList(Haiku).contains Arrays.asList(Haiku) Arrays.asList Arrays Haiku 5 Arrays.asList(Haiku).contains(7) Arrays.asList(Haiku).contains Arrays.asList(Haiku) Arrays.asList Arrays Haiku 7 {
      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){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  }
} public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    Integer Haiku[] = new Integer[3];
    int sum = 0;
    
    for(int i = 0; i < Haiku.length; i++){
      Haiku[i] = scanner.nextInt();
      sum += Haiku[i];
    }
    
    String ans = "NO";
    
    if(sum == 17 && Arrays.asList(Haiku).contains(5) && Arrays.asList(Haiku).contains(7)){
      ans = "YES";
    }
    System.out.println(ans); 
  }
}