import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    }
} Main public static void main(String[] args){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    } main {
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int A = s.nextInt(); A s.nextInt() s.nextInt s int B = s.nextInt(); B s.nextInt() s.nextInt s int C = s.nextInt(); C s.nextInt() s.nextInt s int nana=0 nana 0 go=0; go 0 if(A == 5){ go++;} else if(A == 7) {nana++;} A == 5 A 5 { go++;} go++ go if(A == 7) {nana++;} A == 7 A 7 {nana++;} nana++ nana if(B == 5){ go++;} else if(B == 7) {nana++;} B == 5 B 5 { go++;} go++ go if(B == 7) {nana++;} B == 7 B 7 {nana++;} nana++ nana if(C == 5){ go++;} else if(C == 7) {nana++;} C == 5 C 5 { go++;} go++ go if(C == 7) {nana++;} C == 7 C 7 {nana++;} nana++ nana if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      } go == 2 && nana == 1 go == 2 go 2 nana == 1 nana 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){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    }
} public class Main{
	public static void main(String[] args){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    }
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
      Scanner s = new Scanner(System.in);
      int A = s.nextInt();
      int B = s.nextInt();
      int C = s.nextInt();
      
      int nana=0, go=0;
      if(A == 5){ go++;} else if(A == 7) {nana++;}
      if(B == 5){ go++;} else if(B == 7) {nana++;}
      if(C == 5){ go++;} else if(C == 7) {nana++;}
      
      if(go == 2 && nana == 1){
      	System.out.println("YES");
      }else{
      	System.out.println("NO");
      }
    }
}