import java.util.*;

public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
} Main public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    } main {
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    } Scanner sc1 = new Scanner(System.in); sc1 new Scanner(System.in) int a = sc1.nextInt(); a sc1.nextInt() sc1.nextInt sc1 int b = sc1.nextInt(); b sc1.nextInt() sc1.nextInt sc1 int c = sc1.nextInt(); c sc1.nextInt() sc1.nextInt sc1 if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        } a == 7 && b == 5 && c == 5 a == 7 && b == 5 && c == 5 a == 7 a 7 b == 5 b 5 c == 5 c 5 {
            System.out.print("YES");
        } System.out.print("YES") System.out.print System.out System System.out "YES" if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        } a == 5 && b == 7 && c == 5 a == 5 && b == 7 && c == 5 a == 5 a 5 b == 7 b 7 c == 5 c 5 {
            System.out.print("YES");
        } System.out.print("YES") System.out.print System.out System System.out "YES" if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        } a == 5 && b == 5 && c == 7 a == 5 && b == 5 && c == 7 a == 5 a 5 b == 5 b 5 c == 7 c 7 {
            System.out.print("YES");
        } System.out.print("YES") System.out.print System.out System System.out "YES" {
            System.out.print("NO");
        } System.out.print("NO") System.out.print System.out System System.out "NO" String args[] args public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
} public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
} Main
import java.util.*;

public class Main{
	public static void main(String args[]){
        Scanner sc1 = new Scanner(System.in);
        int a = sc1.nextInt();
        int b = sc1.nextInt();
        int c = sc1.nextInt();
        if(a == 7 && b == 5 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 7 && c == 5){
            System.out.print("YES");
        }else if(a == 5 && b == 5 && c == 7){
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }
    }
}