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

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	}

} 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);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	} main {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int C = scanner.nextInt(); C scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int[] bunsetsu = new int[3]; bunsetsu new int[3] 3 bunsetsu[0] = A bunsetsu[0] bunsetsu 0 A bunsetsu[1] = B bunsetsu[1] bunsetsu 1 B bunsetsu[2] = C bunsetsu[2] bunsetsu 2 C Arrays.sort(bunsetsu) Arrays.sort Arrays bunsetsu if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		} bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7 bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7 bunsetsu[0] != 5 bunsetsu[0] bunsetsu 0 5 bunsetsu[1] != 5 bunsetsu[1] bunsetsu 1 5 bunsetsu[2] != 7 bunsetsu[2] bunsetsu 2 7 {
			System.out.println("NO");
			return;
		} System.out.println("NO") System.out.println System.out System System.out "NO" return; System.out.println("YES") System.out.println System.out System System.out "YES" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		scanner.close();

		int[] bunsetsu = new int[3];
		bunsetsu[0] = A;
		bunsetsu[1] = B;
		bunsetsu[2] = C;

		Arrays.sort(bunsetsu);

		if (bunsetsu[0] != 5 || bunsetsu[1] != 5 || bunsetsu[2] != 7) {
			System.out.println("NO");
			return;
		}

		System.out.println("YES");

	}

}
