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