
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)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 scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO");
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO");
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan scan.close() scan.close scan int x[]= {a,b,c}; x {a,b,c} a b c int cnt[]= {0,0}; cnt {0,0} 0 0 for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		} {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		} if(x[i]==5)cnt[0]+=1; x[i]==5 x[i] x i 5 cnt[0]+=1 cnt[0] cnt 0 1 if(x[i]==7)cnt[1]+=1; x[i]==7 x[i] x i 7 cnt[1]+=1 cnt[1] cnt 1 1 if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO"); cnt[0]==2 &&cnt[1]==1 cnt[0]==2 cnt[0] cnt 0 2 cnt[1]==1 cnt[1] cnt 1 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 a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==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 a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO");
	}
} Main

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		int x[]= {a,b,c};
		int cnt[]= {0,0};
		for(int i=0;i<3;i++) {
			if(x[i]==5)cnt[0]+=1;
			if(x[i]==7)cnt[1]+=1;
		}

		if(cnt[0]==2 &&cnt[1]==1)System.out.println("YES");
		else System.out.println("NO");
	}
}