import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    }

} import java.util.*; util.* java import javax.lang.model.util.ElementScanner6; ElementScanner6 javax.lang.model.util public class Main {

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    }

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    } main {
        Scanner sc = new Scanner(System.in);

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] word = new int[3]; word new int[3] 3 word[0] = sc.nextInt() word[0] word 0 sc.nextInt() sc.nextInt sc word[1] = sc.nextInt() word[1] word 1 sc.nextInt() sc.nextInt sc word[2] = sc.nextInt() word[2] word 2 sc.nextInt() sc.nextInt sc Arrays.sort(word) Arrays.sort Arrays word String out; out if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        } word[0] == 5 && word[1] == 5 && word[2] == 7 word[0] == 5 && word[1] == 5 && word[2] == 7 word[0] == 5 word[0] word 0 5 word[1] == 5 word[1] word 1 5 word[2] == 7 word[2] word 2 7 {
            out = "YES";
        } out = "YES" out "YES" {
            out = "NO";
        } out = "NO" out "NO" System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    }

} public class Main {

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    }

} Main
import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int[] word = new int[3];
        word[0] = sc.nextInt();
        word[1] = sc.nextInt();
        word[2] = sc.nextInt();

        // 処理
        Arrays.sort(word);
        String out;
        if (word[0] == 5 && word[1] == 5 && word[2] == 7){
            out = "YES";
        } else {
            out = "NO";
        }


        // 出力
        System.out.println(out);
    }

}