import java.util.*;

public class Main {
	public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    }
} Main public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    } main {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    } java.util.Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int c = in.nextInt(); c in.nextInt() in.nextInt in int [] arr = new int [3]; arr new int [3] 3 arr[0] = a arr[0] arr 0 a arr[1]=b arr[1] arr 1 b arr[2]=c arr[2] arr 2 c int c5=0 c5 0 c7 =0; c7 0 for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		} int i =0; int i =0; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		} {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		} if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;} arr[i]== 5 arr[i] arr i 5 {
				c5++;} c5++ c5 if (arr[i] == 7) {
				c7++;} arr[i] == 7 arr[i] arr i 7 {
				c7++;} c7++ c7 if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		} c5 ==2 && c7==1 c5 ==2 c5 2 c7==1 c7 1 {
			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) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    }
} public class Main {
	public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    }
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();
		int [] arr = new int [3];
		arr[0] = a ; arr[1]=b;arr[2]=c;
		int c5=0, c7 =0;
		
		for (int i =0;i<arr.length;i++) {
			if(arr[i]== 5) {
				c5++;}
			else if (arr[i] == 7) {
				c7++;}
		}
		
		
		
		if (c5 ==2 && c7==1) {
			System.out.println("YES");}
		else {
			System.out.println("NO");
		}
		
		
		
    }
}
