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

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

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

        sc.close();
        out.flush();
    }
} 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) {
        Scanner sc = new Scanner(System.in);

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

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

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

        sc.close();
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

        sc.close();
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] haiku = new int[3]; haiku new int[3] 3 for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            haiku[i] = Integer.parseInt(sc.next());
        } {
            haiku[i] = Integer.parseInt(sc.next());
        } haiku[i] = Integer.parseInt(sc.next()) haiku[i] haiku i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(haiku) Arrays.sort Arrays haiku PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        } haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7 haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7 haiku[0] == 5 haiku[0] haiku 0 5 haiku[1] == 5 haiku[1] haiku 1 5 haiku[2] == 7 haiku[2] haiku 2 7 {
            out.println("YES");
        } out.println("YES") out.println out "YES" {
            out.println("NO");
        } out.println("NO") out.println out "NO" sc.close() sc.close sc out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

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

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

        sc.close();
        out.flush();
    }
} Main
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

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

        int[] haiku = new int[3];
        for (int i = 0; i < 3; i++) {
            haiku[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(haiku);

        PrintWriter out = new PrintWriter(System.out);
        if (haiku[0] == 5 && haiku[1] == 5 && haiku[2] == 7) {
            out.println("YES");
        } else {
            out.println("NO");
        }

        sc.close();
        out.flush();
    }
}