import java.util.*;

public class Main{
    
    /////////////////////////////////
    //                             //
    //  @ Author: Ali Mohammed Ali //
    //                             //
    /////////////////////////////////
    
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method
    
  } // End of class import java.util.*; util.* java public class Main{
    
    /////////////////////////////////
    //                             //
    //  @ Author: Ali Mohammed Ali //
    //                             //
    /////////////////////////////////
    
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method
    
  } // End of class Main public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method main {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int A A B B C; C int sum5 = 0; sum5 0 int sum7 = 0; sum7 0 A = in.nextInt() A in.nextInt() in.nextInt in B = in.nextInt() B in.nextInt() in.nextInt in C = in.nextInt() C in.nextInt() in.nextInt in if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++; A == 5 A 5 sum5++ sum5 if (A == 7)
            sum7++; A == 7 A 7 sum7++ sum7 if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++; B == 5 B 5 sum5++ sum5 if (B == 7)
            sum7++; B == 7 B 7 sum7++ sum7 if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++; C == 5 C 5 sum5++ sum5 if (C == 7)
            sum7++; C == 7 C 7 sum7++ sum7 if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO"); sum5 == 2 && sum7 == 1 sum5 == 2 sum5 2 sum7 == 1 sum7 1 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{
    
    /////////////////////////////////
    //                             //
    //  @ Author: Ali Mohammed Ali //
    //                             //
    /////////////////////////////////
    
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method
    
  } // End of class public class Main{
    
    /////////////////////////////////
    //                             //
    //  @ Author: Ali Mohammed Ali //
    //                             //
    /////////////////////////////////
    
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method
    
  } // End of class Main
import java.util.*;

public class Main{
    
    /////////////////////////////////
    //                             //
    //  @ Author: Ali Mohammed Ali //
    //                             //
    /////////////////////////////////
    
    public static void main(String[] args) {
        
        Scanner in = new Scanner(System.in);
        
        int A,B,C;
        int sum5 = 0;
        int sum7 = 0;
        
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        
        if (A == 5)
            sum5++;
        else if (A == 7)
            sum7++;
        
        if (B == 5)
            sum5++;
        else if (B == 7)
            sum7++;
        
        if (C == 5)
            sum5++;
        else if (C == 7)
            sum7++;
        
        if (sum5 == 2 && sum7 == 1)
            System.out.println("YES");
        else
            System.out.println("NO");
  
    } // End of Main method
    
  } // End of class