import java.util.Scanner;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	}

} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {

	public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	}

} Main public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	} main {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	} Scanner ret = new Scanner(System.in); ret new Scanner(System.in) int a a b=0 b 0 i i c=0; c 0 String s; s for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		} i=0; i=0 i 0 i<3 i 3 i++ i++ i {
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		} {
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		} a=ret.nextInt() a ret.nextInt() ret.nextInt ret if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++; a==5 a 5 {
			 b++;
			} b++ b if(a==7)
				c++; a==7 a 7 c++ c if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO"); b==2&&c==1 b==2 b 2 c==1 c 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 System.out System System.out "NO" String[] args args public class Main {

	public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	}

} public class Main {

	public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	}

} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) {
		//Scanner myObj = new Scanner(System.in);
		Scanner ret = new Scanner(System.in);
		int a,b=0,i,c=0;
		String s;
		
		
	    //a=ret.nextInt();
		for(i=0;i<3;i++)
		{
			a=ret.nextInt();
			if(a==5)
			{
			 b++;
			}
			else if(a==7)
				c++;
				
		}
		if(b==2&&c==1)
		{
		 System.out.println("YES");
		}
		else
		 System.out.println("NO");
			
	   
	}

}