import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	} main {
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int a = scn.nextInt(); a scn.nextInt() scn.nextInt scn int b = scn.nextInt(); b scn.nextInt() scn.nextInt scn int c = scn.nextInt(); c scn.nextInt() scn.nextInt scn int count5 = 0; count5 0 int count7 = 0; count7 0 if(a==5) count5++; a==5 a 5 count5++ count5 if(a==7) count7++; a==7 a 7 count7++ count7 if(b==5) count5++; b==5 b 5 count5++ count5 if(b==7) count7++; b==7 b 7 count7++ count7 if(c==5) count5++; c==5 c 5 count5++ count5 if(c==7) count7++; c==7 c 7 count7++ count7 String ans = "NO"; ans "NO" if(count5==2 && count7==1) ans = "YES"; count5==2 && count7==1 count5==2 count5 2 count7==1 count7 1 ans = "YES" ans "YES" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
		int b = scn.nextInt();
      	int c = scn.nextInt();
      	int count5 = 0;
      	int count7 = 0;
      	if(a==5) count5++;
      	if(a==7) count7++;
      	if(b==5) count5++;
      	if(b==7) count7++;
      	if(c==5) count5++;
      	if(c==7) count7++;
      	String ans = "NO";
      	if(count5==2 && count7==1) ans = "YES";
      	System.out.println(ans);
	}
}