import java.util.Scanner;

class Main{
  static int words[] = new int[3];

  /** カウント */
  private static int COUNT_5, COUNT_7;

  /**
   * メインメソッド
   *
   * @param args 引数
   */
  public static void main(String[] args) {
    setData();
    calc();

    System.out.println(COUNT_5 == 2 && COUNT_7 == 1 ? "YES" : "NO");
  }

  /** 初期値設定 */
  private static void setData() {
    Scanner sc = new Scanner(System.in);
    words[0] = sc.nextInt();
    words[1] = sc.nextInt();
    words[2] = sc.nextInt();
  }

  /** 計算メソッド */
  private static void calc() {
    for (int word : words) {
      if (word == 5) {
        COUNT_5++;
      } else if (word == 7) {
        COUNT_7++;
      }
    }
  }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz