import java.util.*;

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

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