import java.util.*;


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


class Main{
  
     
  
  
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
      
      int cnt5 = 0;
      int cnt7 = 0;
      for(int i=0;i<3;i++){
      	int n = sc.nextInt();
        if(n==5){
        	cnt5++;
        } else if(n==7){
        	cnt7++;
        }
      }
      
      if(cnt5==2 && cnt7==1){
      	System.out.println("YES");
      } else System.out.println("NO");
      
	}
}