
import java.util.Scanner;

class Main {

    int[] abc;

    Main(int[] abc) {
        this.abc = abc;
    }

    String solve() {

        final String YES = "YES";
        final String NO = "NO";

        int n5 = 0;
        int n7 = 0;

        for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        }

        if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        }
    }

    public static void main(String args[]) {
        // input
        int[] abc = new int[3];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        }
        sc.close();

        // solve
        String greeting = new Main(abc).solve();

        // display
        System.out.println(greeting);
    }
} import java.util.Scanner; Scanner java.util class Main {

    int[] abc;

    Main(int[] abc) {
        this.abc = abc;
    }

    String solve() {

        final String YES = "YES";
        final String NO = "NO";

        int n5 = 0;
        int n7 = 0;

        for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        }

        if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        }
    }

    public static void main(String args[]) {
        // input
        int[] abc = new int[3];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        }
        sc.close();

        // solve
        String greeting = new Main(abc).solve();

        // display
        System.out.println(greeting);
    }
} Main int[] abc; abc Main(int[] abc) {
        this.abc = abc;
    } Main {
        this.abc = abc;
    } this.abc = abc this.abc this this.abc abc int[] abc abc String solve() {

        final String YES = "YES";
        final String NO = "NO";

        int n5 = 0;
        int n7 = 0;

        for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        }

        if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        }
    } solve {

        final String YES = "YES";
        final String NO = "NO";

        int n5 = 0;
        int n7 = 0;

        for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        }

        if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        }
    } final String YES = "YES"; YES "YES" final String NO = "NO"; NO "NO" int n5 = 0; n5 0 int n7 = 0; n7 0 for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        } {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        } if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            } abc[i] == 5 abc[i] abc i 5 {
                n5++;
            } n5++ n5 if (abc[i] == 7) {
                n7++;
            } abc[i] == 7 abc[i] abc i 7 {
                n7++;
            } n7++ n7 if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        } n5 == 2 && n7 == 1 n5 == 2 n5 2 n7 == 1 n7 1 {
            return YES;
        } return YES; YES {
            return NO;
        } return NO; NO public static void main(String args[]) {
        // input
        int[] abc = new int[3];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        }
        sc.close();

        // solve
        String greeting = new Main(abc).solve();

        // display
        System.out.println(greeting);
    } main {
        // input
        int[] abc = new int[3];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        }
        sc.close();

        // solve
        String greeting = new Main(abc).solve();

        // display
        System.out.println(greeting);
    } int[] abc = new int[3]; abc new int[3] 3 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            abc[i] = sc.nextInt();
        } {
            abc[i] = sc.nextInt();
        } abc[i] = sc.nextInt() abc[i] abc i sc.nextInt() sc.nextInt sc sc.close() sc.close sc String greeting = new Main(abc).solve(); greeting new Main(abc).solve() new Main(abc).solve new Main(abc) System.out.println(greeting) System.out.println System.out System System.out greeting String args[] args

import java.util.Scanner;

class Main {

    int[] abc;

    Main(int[] abc) {
        this.abc = abc;
    }

    String solve() {

        final String YES = "YES";
        final String NO = "NO";

        int n5 = 0;
        int n7 = 0;

        for (int i = 0; i < 3; i++) {
            if (abc[i] == 5) {
                n5++;
            } else if (abc[i] == 7) {
                n7++;
            }
        }

        if (n5 == 2 && n7 == 1) {
            return YES;
        } else {
            return NO;
        }
    }

    public static void main(String args[]) {
        // input
        int[] abc = new int[3];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            abc[i] = sc.nextInt();
        }
        sc.close();

        // solve
        String greeting = new Main(abc).solve();

        // display
        System.out.println(greeting);
    }
}