import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	}

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

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	} main {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc boolean ans = false; ans false switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		} a case 5: 5 case 5: if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			} b ==7 b 7 {
				if(c == 5) {
					ans = true;
				}
			} if(c == 5) {
					ans = true;
				} c == 5 c 5 {
					ans = true;
				} ans = true ans true if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			} c == 7 c 7 {
				if(b == 5) {
					ans = true;
				}
			} if(b == 5) {
					ans = true;
				} b == 5 b 5 {
					ans = true;
				} ans = true ans true break; case 7: 7 case 7: if(b == 5 && c == 5) {
				ans = true;
			} b == 5 && c == 5 b == 5 b 5 c == 5 c 5 {
				ans = true;
			} ans = true ans true System.out.println(ans ? "YES" : "NO") System.out.println System.out System System.out ans ? "YES" : "NO" ans "YES" "NO" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		boolean ans = false;

		switch (a) {
		case 5:
			if(b ==7) {
				if(c == 5) {
					ans = true;
				}
			}else if(c == 7) {
				if(b == 5) {
					ans = true;
				}
			}
			break;
		case 7:
			if(b == 5 && c == 5) {
				ans = true;
			}
		}
		System.out.println(ans ? "YES" : "NO");
	}

}