
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	}
} Main public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	} main {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO") System.out.println System.out System System.out sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO" sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 sc.nextInt()*sc.nextInt()*sc.nextInt() sc.nextInt()*sc.nextInt()*sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc 175 "YES" "NO" String[] args args public class Main {

	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	}
} public class Main {

	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.nextInt()*sc.nextInt()*sc.nextInt() == 175 ? "YES" : "NO");
	}
}