
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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	}
} 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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	}
} 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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int C = scanner.nextInt();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	} 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 if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO"); (A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10) (A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10) (A == 7 && C + B == 10) A == 7 A 7 C + B == 10 C + B C B 10 (B == 7 && A + C == 10) B == 7 B 7 A + C == 10 A + C A C 10 (C == 7 && A + B == 10) C == 7 C 7 A + B == 10 A + B A B 10 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" scanner.close() scanner.close scanner 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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	}
} 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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	}
} Main

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();
		if ((A == 7 && C + B == 10) || (B == 7 && A + C == 10) || (C == 7 && A + B == 10))
			System.out.println("YES");
		else
			System.out.println("NO");
		scanner.close();
	}
}