import java.util.Scanner;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String message = "";
        if ((a * b * c) == (5 * 7 * 5)) {
            message = "YES";
        } else {
            message = "NO";
        }
        
        System.out.println(message);
    }
}