import java.util.*;

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

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