
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    } 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 int[] ary = {a, b, c}; ary {a, b, c} a b c Arrays.sort(ary) Arrays.sort Arrays ary System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO") System.out.println System.out System System.out (ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO" (ary[0]==5 && ary[1]==5 && ary[2]==7) ary[0]==5 && ary[1]==5 && ary[2]==7 ary[0]==5 ary[0] ary 0 5 ary[1]==5 ary[1] ary 1 5 ary[2]==7 ary[2] ary 2 7 "YES" "NO" sc.close() sc.close sc String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    }
} Main

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        // 入力(A B C)
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int[] ary = {a, b, c};
        Arrays.sort(ary);

        System.out.println((ary[0]==5 && ary[1]==5 && ary[2]==7) ? "YES": "NO");
        sc.close();
    }
}
