import java.util.*;

public class Main{
  
	public static void main(String[] args) {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    }  
  
}
 import java.util.*; util.* java public class Main{
  
	public static void main(String[] args) {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    }  
  
} Main public static void main(String[] args) {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    } main {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int C = scanner.nextInt(); C scanner.nextInt() scanner.nextInt scanner if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		} A * B * C == 175 A * B * C A * B * C A B C 175 {
    		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 scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    }  
  
} public class Main{
  
	public static void main(String[] args) {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    }  
  
} Main
import java.util.*;

public class Main{
  
	public static void main(String[] args) {
      
  		Scanner scanner = new Scanner(System.in);
  
  		int A = scanner.nextInt();
  		int B = scanner.nextInt();
  		int C = scanner.nextInt();
  
  		if( A * B * C == 175 ){
    		System.out.println("YES");
  		} else {
    		System.out.println("NO");
  		}
      
    }  
  
}

