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