import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	}
} Main public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	} main {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	} Scanner sca = new Scanner(System.in); sca new Scanner(System.in) int a = sca.nextInt(); a sca.nextInt() sca.nextInt sca int b = sca.nextInt(); b sca.nextInt() sca.nextInt sca int c = sca.nextInt(); c sca.nextInt() sca.nextInt sca boolean a_b = (a == 5 || a == 7); a_b (a == 5 || a == 7) a == 5 a 5 a == 7 a 7 boolean b_b = (b == 5 || b == 7); b_b (b == 5 || b == 7) b == 5 b 5 b == 7 b 7 boolean c_b = (c == 5 || c == 7); c_b (c == 5 || c == 7) c == 5 c 5 c == 7 c 7 String answer = "YES"; answer "YES" if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	} a_b && b_b && c_b a_b && b_b && c_b a_b b_b c_b {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	} if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		} a + b + c == 17 a + b + c a + b + c a b c 17 {
			answer = "YES";
		} answer = "YES" answer "YES" {
			answer = "NO";
		} answer = "NO" answer "NO" {
		answer = "NO";
	} answer = "NO" answer "NO" System.out.println(answer) System.out.println System.out System System.out answer sca.close() sca.close sca String[] args args public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	}
} public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

	Scanner sca = new Scanner(System.in);
	
	int a = sca.nextInt();
	int b = sca.nextInt();
	int c = sca.nextInt();
	
	boolean a_b = (a == 5 || a == 7);
	boolean b_b = (b == 5 || b == 7);
	boolean c_b = (c == 5 || c == 7);
	
	String answer = "YES";
	
	if(a_b && b_b && c_b) {
		if(a + b + c == 17) {
			answer = "YES";
		}
		else {
			answer = "NO";
		}
	}
	else {
		answer = "NO";
	}
	
	System.out.println(answer);
	sca.close();
	}
}