//霊符「夢想封印」！！！！
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	} main {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	} Scanner sc = new Scanner (System.in); sc new Scanner (System.in) String a a b b c c abc; abc a = sc.next() a sc.next() sc.next sc b = sc.next() b sc.next() sc.next sc c = sc.next() c sc.next() sc.next sc abc = a+b+c abc a+b+c a+b+c a b c if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		} abc.equals("557")||abc.equals("575")||abc.equals("755") abc.equals("557")||abc.equals("575")||abc.equals("755") abc.equals("557") abc.equals abc "557" abc.equals("575") abc.equals abc "575" abc.equals("755") abc.equals abc "755" {
			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) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}
} Main
//霊符「夢想封印」！！！！
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String a,b,c,abc;
		a = sc.next();
		b = sc.next();
		c = sc.next();
		abc = a+b+c;
		if(abc.equals("557")||abc.equals("575")||abc.equals("755")) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}
}