import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	} main {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] num = new int[3]; num new int[3] 3 num[0] = scan.nextInt() num[0] num 0 scan.nextInt() scan.nextInt scan num[1] = scan.nextInt() num[1] num 1 scan.nextInt() scan.nextInt scan num[2] = scan.nextInt() num[2] num 2 scan.nextInt() scan.nextInt scan int count5 = 0; count5 0 int count7 = 0; count7 0 for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		} int number num {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		} {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		} if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			} number == 5 number 5 {
				count5 += 1;
			} count5 += 1 count5 1 if (number == 7) {
				count7 += 1;
			} number == 7 number 7 {
				count7 += 1;
			} count7 += 1 count7 1 String result; result if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		} count5 == 2 && count7 == 1 count5 == 2 count5 2 count7 == 1 count7 1 {
			result = "YES";
		} result = "YES" result "YES" {
			result = "NO";
		} result = "NO" result "NO" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int[] num = new int[3];
		num[0] = scan.nextInt();
		num[1] = scan.nextInt();
		num[2] = scan.nextInt();

		int count5 = 0;
		int count7 = 0;

		for (int number : num) {
			if (number == 5) {
				count5 += 1;
			} else if (number == 7) {
				count7 += 1;
			}
		}

		String result;

		if (count5 == 2 && count7 == 1) {
			result = "YES";
		} else {
			result = "NO";
		}
		System.out.println(result);
	}
}
