import java.util.Scanner;

class Main{
	public static void main(String[] args){
    	
      Scanner sc = new Scanner(System.in);
      String isOk = "NO" ;
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      
      if(a==5){
      	if(b==7){
        	if(c==5){
            	isOk = "YES";
            }
        } else if (b==5){
        	if(c==7){
            	isOk = "YES";
            }
        }
        
      } else if (a==7){
      		if(b==5){
            	if(c==5){
                	isOk = "YES";
                }
            }
      }
    
      System.out.println( isOk );
    }

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

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

class Main{
	public static void main(String[] args){
    	
      Scanner sc = new Scanner(System.in);
      String isOk = "NO" ;
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      
      if(a==5){
      	if(b==7){
        	if(c==5){
            	isOk = "YES";
            }
        } else if (b==5){
        	if(c==7){
            	isOk = "YES";
            }
        }
        
      } else if (a==7){
      		if(b==5){
            	if(c==5){
                	isOk = "YES";
                }
            }
      }
    
      System.out.println( isOk );
    }

}