import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

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

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

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

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

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

		System.out.println(count[5] == 2 && count[7] == 1 ? "YES" : "NO");
	} main {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

		System.out.println(count[5] == 2 && count[7] == 1 ? "YES" : "NO");
	} int[] count = new int[10 + 1]; count new int[10 + 1] 10 + 1 10 1 for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int len = sc.nextInt();
			count[len]++;
		} {
			int len = sc.nextInt();
			count[len]++;
		} int len = sc.nextInt(); len sc.nextInt() sc.nextInt sc count[len]++ count[len] count len System.out.println(count[5] == 2 && count[7] == 1 ? "YES" : "NO") System.out.println System.out System System.out count[5] == 2 && count[7] == 1 ? "YES" : "NO" count[5] == 2 && count[7] == 1 count[5] == 2 count[5] count 5 2 count[7] == 1 count[7] count 7 1 "YES" "NO" String[] arg arg public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

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

} public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

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

} Main
import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] arg) {
		int[] count = new int[10 + 1];

		for(int i = 0; i < 3; i++) {
			int len = sc.nextInt();
			count[len]++;
		}

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

}
