import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    } main {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int in = 0; in 0 int x5 = 0; x5 0 int x7 = 0; x7 0 for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        } {
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        } in = scan.nextInt() in scan.nextInt() scan.nextInt scan if(in == 5){
                x5 = x5 + 1;
            } in == 5 in 5 {
                x5 = x5 + 1;
            } x5 = x5 + 1 x5 x5 + 1 x5 1 if(in == 7){
                x7 = x7 + 1;
            } in == 7 in 7 {
                x7 = x7 + 1;
            } x7 = x7 + 1 x7 x7 + 1 x7 1 String ans = "NO"; ans "NO" if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        } x5 == 2 x5 2 {
            if(x7 == 1){
                ans = "YES";
            }
        } if(x7 == 1){
                ans = "YES";
            } x7 == 1 x7 1 {
                ans = "YES";
            } ans = "YES" ans "YES" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        
        int in = 0;
        int x5 = 0;
        int x7 = 0;
        
        for(int i = 0 ; i < 3 ; i++){
            in = scan.nextInt();
            if(in == 5){
                x5 = x5 + 1;
            }
            if(in == 7){
                x7 = x7 + 1;
            }
        }
        
        String ans = "NO";
        
        if(x5 == 2){
            if(x7 == 1){
                ans = "YES";
            }
        }

        System.out.println(ans);
        
    }
}