import java.util.Scanner;

public 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	}
} 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	} main {
		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	} 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 String result = " "; result " " if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		} A == 5 && B == 7 && C == 5 A == 5 && B == 7 && C == 5 A == 5 A 5 B == 7 B 7 C == 5 C 5 {
			result = "YES" ;
		} result = "YES" result "YES" if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		} A == 5 && B == 5 && C == 7 A == 5 && B == 5 && C == 7 A == 5 A 5 B == 5 B 5 C == 7 C 7 {
			result = "YES" ;
		} result = "YES" result "YES" if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		} A == 7 && B == 5 && C == 5 A == 7 && B == 5 && C == 5 A == 7 A 7 B == 5 B 5 C == 5 C 5 {
			result = "YES" ;
		} result = "YES" result "YES" {
			result = "NO" ;
		} result = "NO" result "NO" System.out.println(result) System.out.println System.out System System.out result String[] args args public 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	}
} public 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	}
} Main
import java.util.Scanner;

public 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();
		String result = " ";

		if (A == 5 && B == 7 && C == 5 ) {
			result = "YES" ;
		} else if (A == 5 && B == 5 && C == 7) {
			result = "YES" ;
		}else if (A == 7 && B == 5 && C == 5) {
			result = "YES" ;
		}else {
			result = "NO" ;
		}

		System.out.println(result);
	}
}