import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	}

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

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	}

} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	} main {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int cnt5=0 cnt5 0 cnt7=0; cnt7 0 for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		} int i=0; int i=0; i 0 i<3 i 3 ++i ++i i {
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		} {
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		} int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x==5) ++cnt5;
			else if(x==7) ++cnt7; x==5 x 5 ++cnt5 cnt5 if(x==7) ++cnt7; x==7 x 7 ++cnt7 cnt7 System.out.println((cnt5==2 && cnt7==1)?"YES":"NO") System.out.println System.out System System.out (cnt5==2 && cnt7==1)?"YES":"NO" (cnt5==2 && cnt7==1) cnt5==2 cnt5 2 cnt7==1 cnt7 1 "YES" "NO" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int cnt5=0, cnt7=0;
		for(int i=0; i<3; ++i)
		{
			int x=sc.nextInt();
			if(x==5) ++cnt5;
			else if(x==7) ++cnt7;
		}
		System.out.println((cnt5==2 && cnt7==1)?"YES":"NO");
		sc.close(); 
	}

}