import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

    String ans;
    
    for(int i = 0 ; i < 3 ; ++i){
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    }
    
    if(sev==1&&fiv==2) ans = "YES";
    else ans = "NO";
    System.out.println(ans);
    
  }
} 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];
    int sev = 0;
    int fiv = 0;

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

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

    String ans;
    
    for(int i = 0 ; i < 3 ; ++i){
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    }
    
    if(sev==1&&fiv==2) ans = "YES";
    else ans = "NO";
    System.out.println(ans);
    
  } main {
    Scanner sc = new Scanner(System.in);

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

    String ans;
    
    for(int i = 0 ; i < 3 ; ++i){
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    }
    
    if(sev==1&&fiv==2) ans = "YES";
    else ans = "NO";
    System.out.println(ans);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num[] = new int[3]; num new int[3] 3 int sev = 0; sev 0 int fiv = 0; fiv 0 String ans; ans for(int i = 0 ; i < 3 ; ++i){
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 ++i ++i i {
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    } {
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc if(num[i]==7) sev++;
      else if(num[i]==5) fiv++; num[i]==7 num[i] num i 7 sev++ sev if(num[i]==5) fiv++; num[i]==5 num[i] num i 5 fiv++ fiv if(sev==1&&fiv==2) ans = "YES";
    else ans = "NO"; sev==1&&fiv==2 sev==1 sev 1 fiv==2 fiv 2 ans = "YES" ans "YES" ans = "NO" ans "NO" 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 sc = new Scanner(System.in);

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

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

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

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

    int num[] = new int[3];
    int sev = 0;
    int fiv = 0;

    String ans;
    
    for(int i = 0 ; i < 3 ; ++i){
      num[i] = sc.nextInt();
      if(num[i]==7) sev++;
      else if(num[i]==5) fiv++;
    }
    
    if(sev==1&&fiv==2) ans = "YES";
    else ans = "NO";
    System.out.println(ans);
    
  }
}