import java.util.*;
import java.lang.*; 
class Main{
	public static void main(String[] args){
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	}
}
 import java.util.*; util.* java import java.lang.*; lang.* java class Main{
	public static void main(String[] args){
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	}
} Main public static void main(String[] args){
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	} main {
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	} int x=0; x 0 Scanner input=new Scanner(System.in); input new Scanner(System.in) int a[]=new int [3]; a new int [3] 3 for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
		a[i]=input.nextInt();
	} {
		a[i]=input.nextInt();
	} a[i]=input.nextInt() a[i] a i input.nextInt() input.nextInt input for(int j=0;j<3;j++)
	{
		x=x+a[j];
	} int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
		x=x+a[j];
	} {
		x=x+a[j];
	} x=x+a[j] x x+a[j] x a[j] a j if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");} x==17 x 17 {
			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
import java.util.*;
import java.lang.*; 
class Main{
	public static void main(String[] args){
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	}
}

