

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		}
		
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		}
		
	} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		} main {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String result = "NO"; result "NO" int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()}; a {sc.nextInt(), sc.nextInt(), sc.nextInt()} sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int count1 = 0; count1 0 int count2 = 0; count2 0 for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		} int i a {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		} {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		} if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} i == 5 i 5 {
				count1++;
			} count1++ count1 if (i == 7) {
				count2++;
			} i == 7 i 7 {
				count2++;
			} count2++ count2 if (count1 == 2 && count2 == 1)	result = "YES"; count1 == 2 && count2 == 1 count1 == 2 count1 2 count2 == 1 count2 1 result = "YES" result "YES" 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 sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		}
		
	} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		}
		
	} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String result = "NO";
		int[] a = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		int count1 = 0;
		int count2 = 0;
		for(int i : a) {
			if(i == 5) {
				count1++;
			} else if (i == 7) {
				count2++;
			} 
		}
		if (count1 == 2 && count2 == 1)	result = "YES";
		System.out.println(result);
		}
		
	}


