import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

} Main public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	} main {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	} int number1 = 0; number1 0 int number2 = 0; number2 0 int number3 = 0; number3 0 String anser = "NO"; anser "NO" Scanner scan = new Scanner(System.in); scan new Scanner(System.in) number1 = scan.nextInt() number1 scan.nextInt() scan.nextInt scan number2 = scan.nextInt() number2 scan.nextInt() scan.nextInt scan number3 = scan.nextInt() number3 scan.nextInt() scan.nextInt scan if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		} checkFiveOrSeven(number1) checkFiveOrSeven number1 {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		} if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			} checkFiveOrSeven(number2) checkFiveOrSeven number2 {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			} if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				} checkFiveOrSeven(number3) checkFiveOrSeven number3 {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				} if(number1 + number2 + number3 == 17) {
						anser = "YES";
					} number1 + number2 + number3 == 17 number1 + number2 + number3 number1 + number2 + number3 number1 number2 number3 17 {
						anser = "YES";
					} anser = "YES" anser "YES" System.out.println(anser) System.out.println System.out System System.out anser String[] args args private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	} checkFiveOrSeven {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	} if(number ==5 || number == 7) {
			return true;
		} number ==5 || number == 7 number ==5 number 5 number == 7 number 7 {
			return true;
		} return true; true return false; false int number number public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

} public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

}

