import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] a = new int[3]; a new int[3] 3 int five = 0; five 0 int seven = 0; seven 0 for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        } {
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        } {
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        } if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            } a[i] == 5 a[i] a i 5 {
                five++;
            } five++ five if(a[i] == 7){
                seven++;
            } a[i] == 7 a[i] a i 7 {
                seven++;
            } seven++ seven if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        } five == 2 && seven == 1 five == 2 five 2 seven == 1 seven 1 {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[3];
        int five = 0;
        int seven = 0;

        for(int i = 0; i < a.length; i++){
            // System.out.println(i + "文字目を入力してください");
            a[i] = sc.nextInt();
        }
        for(int i = 0; i < a.length; i++){
            if(a[i] == 5){
                five++;
            } else if(a[i] == 7){
                seven++;
            }
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }
}