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

public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

} Main public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] A = new int[3]; A new int[3] 3 for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
			A[i] = scan.nextInt();
		} {
			A[i] = scan.nextInt();
		} A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan Arrays.sort(A) Arrays.sort Arrays A if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO"); A[0]==5&&A[1]==5&&A[2]==7 A[0]==5&&A[1]==5&&A[2]==7 A[0]==5 A[0] A 0 5 A[1]==5 A[1] A 1 5 A[2]==7 A[2] A 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 scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

} public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

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

public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

}
