import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    } main {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("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 String s = a+""+b+""+c; s a+""+b+""+c "" b a+""+b+""+c a "" b "" c if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        } s.equals("557")||s.equals("575")||s.equals("755") s.equals("557")||s.equals("575")||s.equals("755") s.equals("557") s.equals s "557" s.equals("575") s.equals s "575" s.equals("755") s.equals s "755" {
            System.out.println("YES");
            return;
        } System.out.println("YES") System.out.println System.out System System.out "YES" return; 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 sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
//        String s = sc.next();
//        Long x = sc.nextLong();
        String s = a+""+b+""+c;
        if(s.equals("557")||s.equals("575")||s.equals("755")){
            System.out.println("YES");
            return;
        }
        System.out.println("NO");
    }
}
