
import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  }
} Main public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  } main {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  } @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()}; arr {sc.nextInt(), sc.nextInt(), sc.nextInt()} sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc Arrays.sort(arr) Arrays.sort Arrays arr boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7); is575 (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) arr[0] == 5 && arr[1] == 5 && arr[2] == 7 arr[0] == 5 arr[0] arr 0 5 arr[1] == 5 arr[1] arr 1 5 arr[2] == 7 arr[2] arr 2 7 System.out.println(is575 ? "YES" : "NO") System.out.println System.out System System.out is575 ? "YES" : "NO" is575 "YES" "NO" String[] args args public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  }
} public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  }
} Main

import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int[] arr = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
    Arrays.sort(arr);
    boolean is575 = (arr[0] == 5 && arr[1] == 5 && arr[2] == 7);

    System.out.println(is575 ? "YES" : "NO");
  }
}
