import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            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) {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int fiv = 0; fiv 0 int sev = 0; sev 0 for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        } {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        } int num = Integer.parseInt(sc.next()); num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            } num case 5: 5 case 5: fiv++ fiv break; case 7: 7 case 7: sev++ sev break; if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        } fiv == 2 && sev == 1 fiv == 2 fiv 2 sev == 1 sev 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 fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 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 fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} Main
import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = Integer.parseInt(sc.next());//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
}