import java.util.Scanner;

class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		int a, b, c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO");


	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		int a, b, c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO");


	}
} Main public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		int a, b, c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO");


	} main {

		Scanner scan = new Scanner(System.in);
		int a, b, c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO");


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b b c; c a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO"); a == 5 a 5 {
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		} if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			} b == 5 b 5 {
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			} if(c == 7)System.out.print("YES");
				else System.out.print("NO"); c == 7 c 7 System.out.print("YES") System.out.print System.out System System.out "YES" System.out.print("NO") System.out.print System.out System System.out "NO" if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			} b == 7 b 7 {
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			} if(c == 5)System.out.print("YES");
				else System.out.print("NO"); c == 5 c 5 System.out.print("YES") System.out.print System.out System System.out "YES" System.out.print("NO") System.out.print System.out System System.out "NO" if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO"); a == 7 a 7 {
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		} if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO"); b == 5 b 5 {
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			} if(c == 5)System.out.print("YES");
				else System.out.print("NO"); c == 5 c 5 System.out.print("YES") System.out.print System.out System System.out "YES" System.out.print("NO") System.out.print System.out System System.out "NO" System.out.print("NO") System.out.print System.out System System.out "NO" System.out.print("NO") System.out.print System.out System System.out "NO" String args[] args
import java.util.Scanner;

class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		int a, b, c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if(a == 5){
			if(b == 5){
				if(c == 7)System.out.print("YES");
				else System.out.print("NO");
			}
			else if(b == 7){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
		}
		else if(a == 7){
			if(b == 5){
				if(c == 5)System.out.print("YES");
				else System.out.print("NO");
			}
			else System.out.print("NO");
		}
		else System.out.print("NO");


	}
}