import java.util.Scanner;

    class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO");


        scan.close();
	}

} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO");


        scan.close();
	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO");


        scan.close();
	} main {

		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO");


        scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO"); a * b * c == 175 a * b * c a * b * c a b c 175 System.out.print("YES") System.out.print System.out System System.out "YES" System.out.print("NO") System.out.print System.out System System.out "NO" scan.close() scan.close scan String[] args args
import java.util.Scanner;

    class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        if (a * b * c == 175)
        System.out.print("YES");

        else

        System.out.print("NO");


        scan.close();
	}

}