import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	}
} Main public static void main(String[] args) {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	} main {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int cnt1 = 0; cnt1 0 int cnt2 = 0; cnt2 0 for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		} {
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		} int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		} num == 5 num 5 {
      			cnt1++;
    		} cnt1++ cnt1 if(num == 7){
      			cnt2++;
    		} num == 7 num 7 {
      			cnt2++;
    		} cnt2++ cnt2 if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		} cnt1 == 2 && cnt2 == 1 cnt1 == 2 cnt1 2 cnt2 == 1 cnt2 1 {
    		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" scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
  		Scanner scan = new Scanner(System.in);
  		int cnt1 = 0;
  		int cnt2 = 0;
  		for(int i = 0; i < 3; i++){
    		int num = scan.nextInt();
    		if(num == 5){
      			cnt1++;
    		}
    		else if(num == 7){
      			cnt2++;
    		}
  		}
  
  		if(cnt1 == 2 && cnt2 == 1){
    		System.out.println("YES");
  		}
  		else{
    		System.out.println("NO");
  		}
  		scan.close();
	}
} Main
import java.util.Scanner;

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