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