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

public class Main {
	public static void main(String[] args) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	} main {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	} int N = 3; N 3 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc Collections.sort(list) Collections.sort Collections list if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		} (list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7) (list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7) (list.get(0) == 5) list.get(0) list.get list 0 5 (list.get(1) == 5) list.get(1) list.get list 1 5 (list.get(2) == 7) list.get(2) list.get list 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) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
} public class Main {
	public static void main(String[] args) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int N = 3;
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		for(int i=0;i<N;i++) {
			list.add(sc.nextInt());
		}
		Collections.sort(list);
		if((list.get(0) == 5)&&(list.get(1) == 5)&&(list.get(2) == 7)) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
}