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