import java.util.Scanner;

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

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main (String[] args){

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

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

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    } main {

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    } int A = 5; A 5 int B = 7; B 7 int C = 5; C 5 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 if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        } a == A && b == B && c == C a == A && b == B && c == C a == A a A b == B b B c == C c C {
            System.out.println("YES");
        } System.out.println("YES") System.out.println System.out System System.out "YES" if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        } a == B && b == C && c == A a == B && b == C && c == A a == B a B b == C b C c == A c A {
            System.out.println("YES");
        } System.out.println("YES") System.out.println System.out System System.out "YES" if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        } a == C && b == A && c == B a == C && b == A && c == B a == C a C b == A b A c == B c B {
            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){

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

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

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    
} Main
import java.util.Scanner;

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

        int A = 5;
        int B = 7;
        int C = 5;

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        if (a == A && b == B && c == C){
            System.out.println("YES");
        } else if(a == B && b == C && c == A){
            System.out.println("YES");
        }else if(a == C && b == A && c == B){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }

    }

    
}