import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
} Main public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	} main {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	} InputReader in = new InputReader(); in new InputReader() int[] arr = new int[3]; arr new int[3] 3 for (int i=0; i<3; i++)
			arr[i] = in.nextInt(); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i arr[i] = in.nextInt(); arr[i] = in.nextInt() arr[i] arr i in.nextInt() in.nextInt in Arrays.sort(arr) Arrays.sort Arrays arr if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO"); isHaiku(arr) isHaiku arr System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	} isHaiku {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	} int[] haiku = {5, 5, 7}; haiku {5, 5, 7} 5 5 7 for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false; int i=0; int i=0; i 0 i<3 i 3 i++ i++ i if (arr[i] != haiku[i])
				return false; if (arr[i] != haiku[i])
				return false; arr[i] != haiku[i] arr[i] arr i haiku[i] haiku i return false; false return true; true int[] arr arr static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	} InputReader public BufferedReader br; br public StringTokenizer st; st public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		} InputReader {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		} br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) st = null st null public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		} next {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		} while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			} st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			} try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				} catch (IOException e) {
					throw new RuntimeException(e);
				} IOException e {
					throw new RuntimeException(e);
				} throw new RuntimeException(e); new RuntimeException(e) {
					st = new StringTokenizer(br.readLine());
				} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public int nextInt() {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public class Main {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
} Main
import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}