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