import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    } main {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int[] a = new int[11]; a new int[11] 11 a[in.nextInt()]++ a[in.nextInt()] a in.nextInt() in.nextInt in a[in.nextInt()]++ a[in.nextInt()] a in.nextInt() in.nextInt in a[in.nextInt()]++ a[in.nextInt()] a in.nextInt() in.nextInt in if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        } a[7] == 1 && a[5] == 2 a[7] == 1 a[7] a 7 1 a[5] == 2 a[5] a 5 2 {
            System.out.print("YES");
        } System.out.print("YES") System.out.print System.out System System.out "YES" {
            System.out.print("NO");
        } System.out.print("NO") System.out.print System.out System System.out "NO" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] a = new int[11];
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        a[in.nextInt()]++;
        if(a[7] == 1 && a[5] == 2) {
            System.out.print("YES");
        } else {
            System.out.print("NO");
        }
    }
}