import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int cnt5 = 0; cnt5 0 int cnt7 = 0; cnt7 0 if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		} a==5 a 5 {
			cnt5 += 1;
		} cnt5 += 1 cnt5 1 if(a==7){
			cnt7 += 1;
		} a==7 a 7 {
			cnt7 += 1;
		} cnt7 += 1 cnt7 1 if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		} b==5 b 5 {
			cnt5 += 1;
		} cnt5 += 1 cnt5 1 if(b==7){
			cnt7 += 1;
		} b==7 b 7 {
			cnt7 += 1;
		} cnt7 += 1 cnt7 1 if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		} c==5 c 5 {
			cnt5 += 1;
		} cnt5 += 1 cnt5 1 if(c==7){
			cnt7 += 1;
		} c==7 c 7 {
			cnt7 += 1;
		} cnt7 += 1 cnt7 1 sc.close() sc.close sc System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO") System.out.println System.out System System.out (cnt5==2&&cnt7==1) ? "YES":"NO" (cnt5==2&&cnt7==1) cnt5==2 cnt5 2 cnt7==1 cnt7 1 "YES" "NO" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int cnt5 = 0;
		int cnt7 = 0;
		if(a==5){
			cnt5 += 1;
		}else if(a==7){
			cnt7 += 1;
		}
		if(b==5){
			cnt5 += 1;
		}else if(b==7){
			cnt7 += 1;
		}
		if(c==5){
			cnt5 += 1;
		}else if(c==7){
			cnt7 += 1;
		}

		sc.close();
		System.out.println((cnt5==2&&cnt7==1) ? "YES":"NO");
	}
}