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

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] phrases = {scanner.next(), scanner.next(), scanner.next()}; phrases {scanner.next(), scanner.next(), scanner.next()} scanner.next() scanner.next scanner scanner.next() scanner.next scanner scanner.next() scanner.next scanner Arrays.sort(phrases) Arrays.sort Arrays phrases if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		} ("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2]) ("5".equals(phrases[0]) && "5".equals(phrases[1])) "5".equals(phrases[0]) "5".equals "5" phrases[0] phrases 0 "5".equals(phrases[1]) "5".equals "5" phrases[1] phrases 1 "7".equals(phrases[2]) "7".equals "7" phrases[2] phrases 2 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" {
			System.out.println("NO");
		} 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 scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] phrases = {scanner.next(), scanner.next(), scanner.next()};

		Arrays.sort(phrases);
		if(("5".equals(phrases[0]) && "5".equals(phrases[1]))
									&& "7".equals(phrases[2])) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}
