import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}}} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}}} Main public static void main(String[] args) {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}} main {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}} Scanner x=new Scanner(System.in); x new Scanner(System.in) int y=x.nextInt(); y x.nextInt() x.nextInt x int z=x.nextInt(); z x.nextInt() x.nextInt x int w=x.nextInt(); w x.nextInt() x.nextInt x if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
} y==5&&z==7&&w==5 y==5&&z==7&&w==5 y==5 y 5 z==7 z 7 w==5 w 5 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
} y==7&&z==5&&w==5 y==7&&z==5&&w==5 y==7 y 7 z==5 z 5 w==5 w 5 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
} y==5&&z==5&&w==7 y==5&&z==5&&w==7 y==5 y 5 z==5 z 5 w==7 w 7 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" {
			System.out.println("NO");
} 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 x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}}} public class Main {
	public static void main(String[] args) {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}}} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner x=new Scanner(System.in);
		int y=x.nextInt();
		int z=x.nextInt();
		int w=x.nextInt();
		if(y==5&&z==7&&w==5) {
			System.out.println("YES");
		}
		else if(y==7&&z==5&&w==5)
		{
			System.out.println("YES");
		}

		else if (y==5&&z==5&&w==7)
		{
			System.out.println("YES");
		}
		else
		{
			System.out.println("NO");
}}}