import java.util.*;

class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int argInt[] ={a,b,c};
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      }
      
      if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      }
    }
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int argInt[] ={a,b,c};
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      }
      
      if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      }
    }
} Main public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int argInt[] ={a,b,c};
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      }
      
      if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      }
    } main {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int argInt[] ={a,b,c};
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      }
      
      if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int argInt[] ={a,b,c}; argInt {a,b,c} a b c int fiveCount = 0; fiveCount 0 int sevenCount = 0; sevenCount 0 for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      } int arg argInt {
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      } {
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      } if(arg == 5){
          fiveCount++;
        } arg == 5 arg 5 {
          fiveCount++;
        } fiveCount++ fiveCount if( arg == 7){
          sevenCount++;
        } arg == 7 arg 7 {
          sevenCount++;
        } sevenCount++ sevenCount if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      } fiveCount == 2 || sevenCount == 1 fiveCount == 2 fiveCount 2 sevenCount == 1 sevenCount 1 {
        System.out.print("YES");
      } System.out.print("YES") System.out.print System.out System System.out "YES" {
        System.out.print("NO");
      } System.out.print("NO") System.out.print 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 a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int argInt[] ={a,b,c};
     
      int fiveCount = 0;
      int sevenCount = 0;
       
      for(int arg: argInt){
      	if(arg == 5){
          fiveCount++;
        }
        if( arg == 7){
          sevenCount++;
        }
      }
      
      if(fiveCount == 2 || sevenCount == 1){
        System.out.print("YES");
      }else{
        System.out.print("NO");
      }
    }
}