import java.util.*;
public class Main {
     public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     }
} import java.util.*; util.* java public class Main {
     public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     }
} Main public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     } main {
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     } Scanner input = new Scanner(System.in); input new Scanner(System.in) int a = input.nextInt(); a input.nextInt() input.nextInt input int b = input.nextInt(); b input.nextInt() input.nextInt input int c = input.nextInt(); c input.nextInt() input.nextInt input int arr[] = {5, 7, 5}; arr {5, 7, 5} 5 7 5 if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO"); arr[0]==a && arr[1]==b && arr[2]==c arr[0]==a && arr[1]==b && arr[2]==c arr[0]==a arr[0] arr 0 a arr[1]==b arr[1] arr 1 b arr[2]==c arr[2] arr 2 c System.out.println("YES") System.out.println System.out System System.out "YES" if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO"); arr[0]==a && arr[1]==c && arr[2]==b arr[0]==a && arr[1]==c && arr[2]==b arr[0]==a arr[0] arr 0 a arr[1]==c arr[1] arr 1 c arr[2]==b arr[2] arr 2 b System.out.println("YES") System.out.println System.out System System.out "YES" if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO"); arr[0]==b && arr[1]==a && arr[2]==c arr[0]==b && arr[1]==a && arr[2]==c arr[0]==b arr[0] arr 0 b arr[1]==a arr[1] arr 1 a arr[2]==c arr[2] arr 2 c 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 public class Main {
     public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     }
} public class Main {
     public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     }
} Main
import java.util.*;
public class Main {
     public static void main(String [] args){
      Scanner input = new Scanner(System.in);
       
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
    
      int arr[] = {5, 7, 5};
      
      if(arr[0]==a && arr[1]==b && arr[2]==c)
          System.out.println("YES");
      else if(arr[0]==a && arr[1]==c && arr[2]==b)
          System.out.println("YES");
      else if(arr[0]==b && arr[1]==a && arr[2]==c)
          System.out.println("YES");
      else
          System.out.println("NO");
     
     }
}
