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

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			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) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	} main {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int a = scn.nextInt(); a scn.nextInt() scn.nextInt scn int b = scn.nextInt(); b scn.nextInt() scn.nextInt scn int c = scn.nextInt(); c scn.nextInt() scn.nextInt scn int[] arr = { a, b, c }; arr { a, b, c } a b c Arrays.parallelSort(arr) Arrays.parallelSort Arrays arr if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		} arr[0] == 5 && arr[1] == 5 && arr[2] == 7 arr[0] == 5 && arr[1] == 5 && arr[2] == 7 arr[0] == 5 arr[0] arr 0 5 arr[1] == 5 arr[1] arr 1 5 arr[2] == 7 arr[2] arr 2 7 {
			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) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			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) {
		// TODO Auto-generated method stub
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
		int c = scn.nextInt();
		int[] arr = { a, b, c };
		Arrays.parallelSort(arr);
		if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

	}

}
