import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("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 {
			System.out.print("YES");
		} System.out.print("YES") System.out.print System.out System System.out "YES" {
			System.out.print("NO");
		} System.out.print("NO") System.out.print System.out System System.out "NO" String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() * sc.nextInt() * sc.nextInt() == 175) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
}
