import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	} 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 abc = "" + a + b + c; abc "" + a + b + c b "" + a + b + c "" a b c String ans = "NO"; ans "NO" if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		} a + b + c == 17 a + b + c a + b + c a b c 17 {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		} if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			} abc.contains("7") && abc.contains("5") abc.contains("7") abc.contains abc "7" abc.contains("5") abc.contains abc "5" {
				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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String abc = "" + a + b + c;

		String ans = "NO";

		if (a + b + c == 17) {
			if (abc.contains("7") && abc.contains("5")) {
				ans = "YES";
			}
		}

		System.out.println(ans);
	}

}
