import java.util.*;

public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

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

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

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

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

    String s = "NO";
    if (a == 5 && b == 5 && c == 7) {
      s = "YES";
    }
    if (a == 5 && b == 7 && c == 5) {
      s = "YES";
    }
    if (a == 7 && b == 5 && c == 5) {
      s = "YES";
    }
    
    System.out.println(s);
  } main {
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

    String s = "NO";
    if (a == 5 && b == 5 && c == 7) {
      s = "YES";
    }
    if (a == 5 && b == 7 && c == 5) {
      s = "YES";
    }
    if (a == 7 && b == 5 && c == 5) {
      s = "YES";
    }
    
    System.out.println(s);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 int n = 0; n 0 int m = 0; m 0 String s = "NO"; s "NO" if (a == 5 && b == 5 && c == 7) {
      s = "YES";
    } a == 5 && b == 5 && c == 7 a == 5 && b == 5 && c == 7 a == 5 a 5 b == 5 b 5 c == 7 c 7 {
      s = "YES";
    } s = "YES" s "YES" if (a == 5 && b == 7 && c == 5) {
      s = "YES";
    } a == 5 && b == 7 && c == 5 a == 5 && b == 7 && c == 5 a == 5 a 5 b == 7 b 7 c == 5 c 5 {
      s = "YES";
    } s = "YES" s "YES" if (a == 7 && b == 5 && c == 5) {
      s = "YES";
    } a == 7 && b == 5 && c == 5 a == 7 && b == 5 && c == 5 a == 7 a 7 b == 5 b 5 c == 5 c 5 {
      s = "YES";
    } s = "YES" s "YES" System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

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

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

    String s = "NO";
    if (a == 5 && b == 5 && c == 7) {
      s = "YES";
    }
    if (a == 5 && b == 7 && c == 5) {
      s = "YES";
    }
    if (a == 7 && b == 5 && c == 5) {
      s = "YES";
    }
    
    System.out.println(s);
  }
} Main
import java.util.*;

public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    int n = 0;
    int m = 0;

    String s = "NO";
    if (a == 5 && b == 5 && c == 7) {
      s = "YES";
    }
    if (a == 5 && b == 7 && c == 5) {
      s = "YES";
    }
    if (a == 7 && b == 5 && c == 5) {
      s = "YES";
    }
    
    System.out.println(s);
  }
}