import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	}
} import java.io.IOException; IOException java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	}
} Main public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	} main {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	} try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		} {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		} Scanner s = new Scanner(System.in) Scanner s = new Scanner(System.in) new Scanner(System.in) int n = 3; n 3 int[] array = new int[n]; array new int[n] n for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				array[i] = s.nextInt();
			} {
				array[i] = s.nextInt();
			} array[i] = s.nextInt() array[i] array i s.nextInt() s.nextInt s Arrays.sort(array) Arrays.sort Arrays array System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO") System.out.println System.out System System.out (array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO" (array[0] == 5 && array[1] == 5 && array[2] == 7) array[0] == 5 && array[1] == 5 && array[2] == 7 array[0] == 5 array[0] array 0 5 array[1] == 5 array[1] array 1 5 array[2] == 7 array[2] array 2 7 "YES" "NO" String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	}
} Main
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		try (Scanner s = new Scanner(System.in)) {
			int n = 3;
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = s.nextInt();
			}
			Arrays.sort(array);
			System.out.println((array[0] == 5 && array[1] == 5 && array[2] == 7) ? "YES" : "NO");
		}
	}
}
