import java.util.*;
public class Main{
  static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
} import java.util.*; util.* java public class Main{
  static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
} Main static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  } sort {
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  } int temp; temp Arrays.sort(n) Arrays.sort Arrays n int[] s = {5,5,7}; s {5,5,7} 5 5 7 Arrays.sort(s) Arrays.sort Arrays s if(Arrays.equals(n,s)){
      return true;
    } Arrays.equals(n,s) Arrays.equals Arrays n s {
      return true;
    } return true; true return false; false int[] n n public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] n = new int[3]; n new int[3] 3 for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
      n[i] = sc.nextInt();
    } {
      n[i] = sc.nextInt();
    } n[i] = sc.nextInt() n[i] n i sc.nextInt() sc.nextInt sc if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    } sort(n) sort n {
      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{
  static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
} public class Main{
  static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
} Main
import java.util.*;
public class Main{
  static boolean sort(int[] n){
    int temp;
    Arrays.sort(n);
    int[] s = {5,5,7};
    Arrays.sort(s);
    if(Arrays.equals(n,s)){
      return true;
    }
    return false;
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] n = new int[3];
    for(int i = 0;i<3;i++){
      n[i] = sc.nextInt();
    }
    if(sort(n)){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}
