import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.stream.IntStream; IntStream java.util.stream public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } main {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int a = stdin.nextInt(); a stdin.nextInt() stdin.nextInt stdin int b = stdin.nextInt(); b stdin.nextInt() stdin.nextInt stdin int c = stdin.nextInt(); c stdin.nextInt() stdin.nextInt stdin int[] d = IntStream.of(a, b, c).sorted().toArray(); d IntStream.of(a, b, c).sorted().toArray() IntStream.of(a, b, c).sorted().toArray IntStream.of(a, b, c).sorted() IntStream.of(a, b, c).sorted IntStream.of(a, b, c) IntStream.of IntStream a b c if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        } d[0] == 5 && d[1] == 5 && d[2] == 7 d[0] == 5 && d[1] == 5 && d[2] == 7 d[0] == 5 d[0] d 0 5 d[1] == 5 d[1] d 1 5 d[2] == 7 d[2] d 2 7 {
            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 stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = stdin.nextInt();
        
        int[] d = IntStream.of(a, b, c).sorted().toArray();
        
        if (d[0] == 5 && d[1] == 5 && d[2] == 7) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
