import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] nums = new int[3]; nums new int[3] 3 String result; result for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    } int cnt = 0; int cnt = 0; cnt 0 cnt < 3 cnt 3 cnt++ cnt++ cnt {
      nums[cnt] = sc.nextInt();
    } {
      nums[cnt] = sc.nextInt();
    } nums[cnt] = sc.nextInt() nums[cnt] nums cnt sc.nextInt() sc.nextInt sc Arrays.sort(nums) Arrays.sort Arrays nums result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO" result (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO" (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) nums[0] == 5 && nums[1] == 5 && nums[2] == 7 nums[0] == 5 nums[0] nums 0 5 nums[1] == 5 nums[1] nums 1 5 nums[2] == 7 nums[2] nums 2 7 "YES" "NO" System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    String result;
    for (int cnt = 0; cnt < 3; cnt++) {
      nums[cnt] = sc.nextInt();
    }
    Arrays.sort(nums);
    result = (nums[0] == 5 && nums[1] == 5 && nums[2] == 7) ? "YES" : "NO";
    System.out.println(result);
    sc.close();
  }
}