import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A []= new int[3]; A new int[3] 3 for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			A[i]= sc.nextInt();
		} {
			A[i]= sc.nextInt();
		} A[i]= sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc Arrays.parallelSort(A) Arrays.parallelSort Arrays A if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		} A[0]==A[1]&&A[1]==5&&A[2]==7 A[0]==A[1]&&A[1]==5&&A[2]==7 A[0]==A[1] A[0] A 0 A[1] A 1 A[1]==5 A[1] A 1 5 A[2]==7 A[2] A 2 7 {
			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);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A []= new int[3];
		for (int i=0;i<3;i++) {
			A[i]= sc.nextInt();
		}
		Arrays.parallelSort(A);
		if (A[0]==A[1]&&A[1]==5&&A[2]==7) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}