import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A=scan.nextInt() A scan.nextInt() scan.nextInt scan B=scan.nextInt() B scan.nextInt() scan.nextInt scan C=scan.nextInt(); C scan.nextInt() scan.nextInt scan if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        } (A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7) (A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7) (A!=5&&A!=7) A!=5 A 5 A!=7 A 7 (B!=5&&B!=7) B!=5 B 5 B!=7 B 7 (C!=5&&C!=7) C!=5 C 5 C!=7 C 7 {
            System.out.println("NO");
        } System.out.println("NO") System.out.println System.out System System.out "NO" if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        } A+B+C!=17 A+B+C A+B+C A B C 17 {
             System.out.println("NO");
        } System.out.println("NO") System.out.println System.out System System.out "NO" {
            System.out.println("YES");
        } System.out.println("YES") System.out.println System.out System System.out "YES" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A=scan.nextInt(),B=scan.nextInt(),C=scan.nextInt();
        if((A!=5&&A!=7)||(B!=5&&B!=7)||(C!=5&&C!=7)){
            System.out.println("NO");
        }else if(A+B+C!=17){
             System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
}
