import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;++i)a[i]=sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
} import java.io.PrintWriter; PrintWriter java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;++i)a[i]=sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
} Main public static void main(String[] args) throws Exception {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args void run() {
		Scanner sc=new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;++i)a[i]=sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
	} run {
		Scanner sc=new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;++i)a[i]=sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int[] a=new int[3]; a new int[3] 3 for(int i=0;i<3;++i)a[i]=sc.nextInt(); int i=0; int i=0; i 0 i<3 i 3 ++i ++i i a[i]=sc.nextInt(); a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc Arrays.sort(a) Arrays.sort Arrays a System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO") System.out.println System.out System System.out a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO" a[0]==5&&a[1]==5&&a[2]==7 a[0]==5&&a[1]==5&&a[2]==7 a[0]==5 a[0] a 0 5 a[1]==5 a[1] a 1 5 a[2]==7 a[2] a 2 7 "YES" "NO" static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	} tr {
		System.out.println(Arrays.deepToString(objects));
	} System.out.println(Arrays.deepToString(objects)) System.out.println System.out System System.out Arrays.deepToString(objects) Arrays.deepToString Arrays objects Object... objects objects
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;++i)a[i]=sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
}
