import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  }
} Main public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  } main {
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  } int a a b b c; c String str; str Scanner scr = new Scanner(System.in); scr new Scanner(System.in) a = scr.nextInt() a scr.nextInt() scr.nextInt scr b = scr.nextInt() b scr.nextInt() scr.nextInt scr c = scr.nextInt() c scr.nextInt() scr.nextInt scr if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    } a==7 a 7 {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    } if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	} b==5 && c==5 b==5 b 5 c==5 c 5 {
    		str="YES";
    	} str="YES" str "YES" {
    		str="NO";
    	} str="NO" str "NO" if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    } a==5 a 5 {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    } if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	} b==5 && c==7 b==5 b 5 c==7 c 7 {
    		str="YES";
    	} str="YES" str "YES" if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	} b==7 && c==5 b==7 b 7 c==5 c 5 {
    		str="YES";
    	} str="YES" str "YES" {
    		str="NO";
    	} str="NO" str "NO" {
    	str="NO";
    } str="NO" str "NO" System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main{
  public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  }
} public class Main{
  public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int a,b,c;
    String str;
    Scanner scr = new Scanner(System.in);
    a = scr.nextInt();
    b = scr.nextInt();
    c = scr.nextInt();
    if(a==7) {
    	if(b==5 && c==5) {
    		str="YES";
    	}else{
    		str="NO";
    	}
    }else if(a==5) {
    	if(b==5 && c==7) {
    		str="YES";
    	}else if(b==7 && c==5) {
    		str="YES";
    	}else {
    		str="NO";
    	}
    }else{
    	str="NO";
    }
    System.out.println(str);
  }
}