import java.util.*;
public class Main {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    }
} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    } main {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] num = new int[3]; num new int[3] 3 String output = "NO"; output "NO" for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    } int i=0; int i=0; i 0 i<=2 i 2 i++ i++ i {
        num[i] = Integer.parseInt(sc.next());
    } {
        num[i] = Integer.parseInt(sc.next());
    } num[i] = Integer.parseInt(sc.next()) num[i] num i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    } num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7 num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7 num[0]==7&&num[1]==5&&num[2]==5 num[0]==7&&num[1]==5&&num[2]==5 num[0]==7 num[0] num 0 7 num[1]==5 num[1] num 1 5 num[2]==5 num[2] num 2 5 num[0]==5&&num[1]==7&&num[2]==5 num[0]==5&&num[1]==7&&num[2]==5 num[0]==5 num[0] num 0 5 num[1]==7 num[1] num 1 7 num[2]==5 num[2] num 2 5 num[0]==5&&num[1]==5&&num[2]==7 num[0]==5&&num[1]==5&&num[2]==7 num[0]==5 num[0] num 0 5 num[1]==5 num[1] num 1 5 num[2]==7 num[2] num 2 7 {
	    output = "YES";
    } output = "YES" output "YES" System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    }
} public class Main {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    }
} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int[] num = new int[3];
	String output = "NO";
	for(int i=0;i<=2;i++){
        num[i] = Integer.parseInt(sc.next());
    }
	if(num[0]==7&&num[1]==5&&num[2]==5||num[0]==5&&num[1]==7&&num[2]==5||num[0]==5&&num[1]==5&&num[2]==7){
	    output = "YES";
    }
	System.out.println(output);
    }
}
