import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      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[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  } main {
    Scanner sc=new Scanner(System.in);
    int[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int[] ABC=new int[3]; ABC new int[3] 3 for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
      ABC[i]=sc.nextInt();
    } {
      ABC[i]=sc.nextInt();
    } ABC[i]=sc.nextInt() ABC[i] ABC i sc.nextInt() sc.nextInt sc Arrays.sort(ABC) Arrays.sort Arrays ABC boolean flg=false; flg false if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    } ABC[0]==5 ABC[0] ABC 0 5 {
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    } if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      } ABC[1]==5 ABC[1] ABC 1 5 {
        if(ABC[2]==7){
          flg=true;
        }
      } if(ABC[2]==7){
          flg=true;
        } ABC[2]==7 ABC[2] ABC 2 7 {
          flg=true;
        } flg=true flg true if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    } flg {
      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[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      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[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      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[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}