import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    }
}
 import java.io.InputStream; InputStream java.io import java.io.OutputStream; OutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) Task solver = new Task(); solver new Task() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    } Task public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        } solve {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        } int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()}; array new int[]{in.nextInt(), in.nextInt(), in.nextInt()} Arrays.parallelSort(array) Arrays.parallelSort Arrays array out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO") out.append out Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO" Arrays.equals(array, new int[]{5, 5, 7}) Arrays.equals Arrays array new int[]{5, 5, 7} "YES" "NO" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    }
} Main
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            

            int[] array = new int[]{in.nextInt(), in.nextInt(), in.nextInt()};

            Arrays.parallelSort(array);    // 5 5 7 になっていれば正解

            out.append(Arrays.equals(array, new int[]{5, 5, 7}) ? "YES" : "NO");


        }

    }
}

