import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc String[] strArray = new String[3]; strArray new String[3] 3 strArray = str.split(" ") strArray str.split(" ") str.split str " " Arrays.sort(strArray) Arrays.sort Arrays strArray if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		} "557".equals(String.join("", strArray)) "557".equals "557" String.join("", strArray) String.join String "" strArray {
			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 sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strArray = new String[3];

		strArray = str.split(" ");
		Arrays.sort(strArray);

		if ("557".equals(String.join("", strArray))) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}
