import java.util.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	} main {
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] ABC = new int[3]; ABC new int[3] 3 int counter1 = 0; counter1 0 int counter2 = 0; counter2 0 for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
				ABC[i] = scan.nextInt();
			} {
				ABC[i] = scan.nextInt();
			} ABC[i] = scan.nextInt() ABC[i] ABC i scan.nextInt() scan.nextInt scan for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			} int a ABC {
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			} {
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			} if (a == 5)
				{
					counter1++;
				} a == 5 a 5 {
					counter1++;
				} counter1++ counter1 if (a == 7)
				{
					counter2++;
				} a == 7 a 7 {
					counter2++;
				} counter2++ counter2 if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO"); counter1 == 2 && counter2 == 1 counter1 == 2 counter1 2 counter2 == 1 counter2 1 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 class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
}