import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    }
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    } main {
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan int num_1 = Integer.parseInt(str); num_1 Integer.parseInt(str) Integer.parseInt Integer str str = scan.next() str scan.next() scan.next scan int num_2 = Integer.parseInt(str); num_2 Integer.parseInt(str) Integer.parseInt Integer str str = scan.next() str scan.next() scan.next scan int num_3 = Integer.parseInt(str); num_3 Integer.parseInt(str) Integer.parseInt Integer str if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } num_1 == 7 num_1 7 {
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            } num_2 == 5 && num_3 == 5 num_2 == 5 num_2 5 num_3 == 5 num_3 5 {
            	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" if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } num_2 == 7 num_2 7 {
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            } num_1 == 5 && num_3 == 5 num_1 == 5 num_1 5 num_3 == 5 num_3 5 {
            	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" if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } num_3 == 7 num_3 7 {
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        } if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            } num_2 == 5 && num_1 == 5 num_2 == 5 num_2 5 num_1 == 5 num_1 5 {
            	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
import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == 7){
        	if (num_2 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    }
}