    import java.util.*;
    public class Main {
     
    	public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    }
     
    } import java.util.*; util.* java public class Main {
     
    	public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    }
     
    } Main public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    } main {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int b = Integer.parseInt(scan.next()); b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int c = Integer.parseInt(scan.next()); c Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] abc= {a,b,c}; abc {a,b,c} a b c int five=0; five 0 int seven=0; seven 0 for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		} int i abc {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		} {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		} if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			} i==5 i 5 {
    				++five;
    			} ++five five if(i==7){
    				++seven;
    			} i==7 i 7 {
    				++seven;
    			} ++seven seven if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		} five==2 && seven==1 five==2 five 2 seven==1 seven 1 {
    			System.out.print("YES");
    		} System.out.print("YES") System.out.print System.out System System.out "YES" {
    			System.out.print("NO");
    		} System.out.print("NO") System.out.print System.out System System.out "NO" String[] args args public class Main {
     
    	public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    }
     
    } public class Main {
     
    	public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    }
     
    } Main
    import java.util.*;
    public class Main {
     
    	public static void main(String[] args) {
    		Scanner scan = new Scanner(System.in);
    		int a = Integer.parseInt(scan.next());
    		int b = Integer.parseInt(scan.next());
    		int c = Integer.parseInt(scan.next());
    		int[] abc= {a,b,c};
    		
    		int five=0;
    		int seven=0;
    		for(int i: abc) {
    			if (i==5) {
    				++five;
    			}else if(i==7){
    				++seven;
    			}
    		}
    		if (five==2 && seven==1) {
    			System.out.print("YES");
    		}else {
    			System.out.print("NO");
    		}
    }
     
    }