import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		} main {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner if(list.contains(5)) {
			list.remove(list.indexOf(5));
		} list.contains(5) list.contains list 5 {
			list.remove(list.indexOf(5));
		} list.remove(list.indexOf(5)) list.remove list list.indexOf(5) list.indexOf list 5 if(list.contains(7)) {
			list.remove(list.indexOf(7));
		} list.contains(7) list.contains list 7 {
			list.remove(list.indexOf(7));
		} list.remove(list.indexOf(7)) list.remove list list.indexOf(7) list.indexOf list 7 if(list.contains(5)) {
			list.remove(list.indexOf(5));
		} list.contains(5) list.contains list 5 {
			list.remove(list.indexOf(5));
		} list.remove(list.indexOf(5)) list.remove list list.indexOf(5) list.indexOf list 5 if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		} list.size()==0 list.size() list.size list 0 {
			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" scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();

		list.add(scanner.nextInt());
		list.add(scanner.nextInt());
		list.add(scanner.nextInt());

		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.contains(7)) {
			list.remove(list.indexOf(7));
		}
		if(list.contains(5)) {
			list.remove(list.indexOf(5));
		}
		if(list.size()==0) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	    scanner.close();
		}
}
