import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	} main {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	} Scanner reader=new Scanner(System.in); reader new Scanner(System.in) int A= reader.nextInt(); A reader.nextInt() reader.nextInt reader int B= reader.nextInt(); B reader.nextInt() reader.nextInt reader int C= reader.nextInt(); C reader.nextInt() reader.nextInt reader int tab[]= {A,B,C}; tab {A,B,C} A B C Arrays.sort(tab) Arrays.sort Arrays tab if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");} (tab[0]==5  && tab[1]==5 && tab[2]==7) tab[0]==5  && tab[1]==5 && tab[2]==7 tab[0]==5 tab[0] tab 0 5 tab[1]==5 tab[1] tab 1 5 tab[2]==7 tab[2] tab 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" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner reader=new Scanner(System.in);
	int A= reader.nextInt();
	int B= reader.nextInt();
	int C= reader.nextInt();
	int tab[]= {A,B,C};
	Arrays.sort(tab);
	if ((tab[0]==5  && tab[1]==5 && tab[2]==7)) {
		System.out.print("YES");}
		else {
			System.out.print("NO");}
	
	}

}
