import java.util.*;
class Main{
    public static void main(String[] args){
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    }
    
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    }
    
} Main public static void main(String[] args){
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    } main {
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int c = in.nextInt(); c in.nextInt() in.nextInt in if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO"); a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7 c == 5 b == 7 b == 5 a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7 a == 5 a 5 a==7 a 7 b == 5 b 5 b == 7 b 7 c == 5 c 5 c == 7 c 7 if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO"); a + b + c == 17 a + b + c a + b + c a b c 17 System.out.printf("YES") System.out.printf System.out System System.out "YES" System.out.printf("NO") System.out.printf System.out System System.out "NO" System.out.printf("NO") System.out.printf System.out System System.out "NO" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    }
    
}