import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	}	
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	}	
} Main public static void main(String[] args) {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	} main {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	} Scanner in=new Scanner (System.in); in new Scanner (System.in) int A=in.nextInt(); A in.nextInt() in.nextInt in int B=in.nextInt(); B in.nextInt() in.nextInt in int C=in.nextInt(); C in.nextInt() in.nextInt in if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO"); (A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5) (A==5 && B==5 && C==7) A==5 && B==5 && C==7 A==5 A 5 B==5 B 5 C==7 C 7 (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5) (A==5 && B==7 && C==5) A==5 && B==7 && C==5 A==5 A 5 B==7 B 7 C==5 C 5 (A==7 && B==5 && C==5) A==7 && B==5 && C==5 A==7 A 7 B==5 B 5 C==5 C 5 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 in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	}	
} public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	}	
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner in=new Scanner (System.in);
		int A=in.nextInt();
		int B=in.nextInt();
		int C=in.nextInt();
		if((A==5 && B==5 && C==7) || (A==5 && B==7 && C==5) | (A==7 && B==5 && C==5))
			System.out.println("YES");
		else
			System.out.println("NO");
	}	
}