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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
} 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 tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int tempList[] = new int[3]; tempList new int[3] 3 for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            tempList[i] = sc.nextInt();
        } {
            tempList[i] = sc.nextInt();
        } tempList[i] = sc.nextInt() tempList[i] tempList i sc.nextInt() sc.nextInt sc Arrays.sort(tempList) Arrays.sort Arrays tempList int[] anserList = {5, 5, 7}; anserList {5, 5, 7} 5 5 7 if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        } Arrays.equals(tempList, anserList) Arrays.equals Arrays tempList anserList {
            System.out.println("YES");
        } System.out.println("YES") System.out.println System.out System System.out "YES" {
            System.out.println("NO");
        } System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
}
