import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	} main {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] check = new int[3]; check new int[3] 3 int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan check[0] = A check[0] check 0 A check[1] = B check[1] check 1 B check[2] = C check[2] check 2 C int count_5 = 0; count_5 0 int count_7 = 0; count_7 0 for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        } int i=0; int i=0; i 0 i<check.length i check.length check check.length i++ i++ i {
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        } {
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        } if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          } check[i] == 5 check[i] check i 5 {
            count_5++;
          } count_5++ count_5 if(check[i] == 7){
            count_7++;
          } check[i] == 7 check[i] check i 7 {
            count_7++;
          } count_7++ count_7 if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        } count_5 == 2 && count_7 == 1 count_5 == 2 count_5 2 count_7 == 1 count_7 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("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[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          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[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
      	
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
}