import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;
import java.util.stream.Collectors;
 
public class Main {
 
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 }
 
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.HashMap; HashMap java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Map.Entry; Entry java.util.Map import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {
 
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 }
 
} Main public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 } main {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int fi = 0; fi 0 int se = 0; se 0 for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  } int i list {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  } {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  } if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   } i == 5 i 5 {
    fi += 1;
   } fi += 1 fi 1 if (i == 7) {
    se += 1;
   } i == 7 i 7 {
    se += 1;
   } se += 1 se 1 if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  } fi == 2 && se == 1 fi == 2 fi 2 se == 1 se 1 {
   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);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 }
 
} public class Main {
 
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 }
 
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;
import java.util.stream.Collectors;
 
public class Main {
 
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  List<Integer> list = new ArrayList<>();
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  list.add(sc.nextInt());
  int fi = 0;
  int se = 0;
  for (int i : list) {
   if (i == 5) {
    fi += 1;
   } else if (i == 7) {
    se += 1;
   }
  }
  if (fi == 2 && se == 1) {
   System.out.println("YES");
  }else{
   System.out.println("NO");
  }
 }
 
}