import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  } main {
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num[] = new int[3]; num new int[3] 3 for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      num[i] = sc.nextInt();
    } {
      num[i] = sc.nextInt();
    } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc Arrays.sort(num) Arrays.sort Arrays num System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO") System.out.println System.out System System.out num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO" num[0]==5 && (num[1]==5 && num[2]==7) num[0]==5 num[0] num 0 5 (num[1]==5 && num[2]==7) num[1]==5 num[1] num 1 5 num[2]==7 num[2] num 2 7 "YES" "NO" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[3];
    for (int i = 0; i < 3; i++){
      num[i] = sc.nextInt();
    }
    Arrays.sort(num);
    System.out.println(num[0]==5 && (num[1]==5 && num[2]==7) ? "YES" : "NO");
  }
}