

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  }
} Main public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  } main {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() list.add(Integer.parseInt(scanner.next())) list.add list Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner list.add(Integer.parseInt(scanner.next())) list.add list Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner list.add(Integer.parseInt(scanner.next())) list.add list Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Collections.sort(list) Collections.sort Collections list if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  } list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7 list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7 list.get(0) == 5 list.get(0) list.get list 0 5 list.get(1) == 5 list.get(1) list.get list 1 5 list.get(2) == 7 list.get(2) list.get list 2 7 {
		  System.out.print("YES");
	  } System.out.print("YES") System.out.print System.out System System.out "YES" {
		  System.out.print("NO");
	  } System.out.print("NO") System.out.print System.out System System.out "NO" scanner.close() scanner.close scanner String[] args args public class Main {

  public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  }
} public class Main {

  public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  }
} Main


import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
	  Scanner scanner = new Scanner(System.in);
	  ArrayList<Integer> list = new ArrayList<Integer>();
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  list.add(Integer.parseInt(scanner.next()));
	  Collections.sort(list);
	  if(list.get(0) == 5 && list.get(1) == 5 &&list.get(2) == 7) {
		  System.out.print("YES");
	  }else {
		  System.out.print("NO");
	  }
	  
	  scanner.close();
  }
}