import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  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 c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int c5 = 0; c5 0 int c7 = 0; c7 0 String ans = "NO"; ans "NO" for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    } {
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    } int que = sc.nextInt(); que sc.nextInt() sc.nextInt sc if(que == 5)c5++; que == 5 que 5 c5++ c5 if(que == 7)c7++; que == 7 que 7 c7++ c7 if(c5 == 2&&c7 == 1)ans = "YES"; c5 == 2&&c7 == 1 c5 == 2 c5 2 c7 == 1 c7 1 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 sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c5 = 0;
    int c7 = 0;
    String ans = "NO";
    for(int i = 0;i < 3;i++){
      int que = sc.nextInt();
      if(que == 5)c5++;
      if(que == 7)c7++;
    }
    if(c5 == 2&&c7 == 1)ans = "YES";
  System.out.println(ans);
  }
}