import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
}
    } import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
}
    } Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
} main {
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
} 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 int g = 0; g 0 int na = 0; na 0 if(A==5){
        g++;
    }else if(A==7){
        na++;
} A==5 A 5 {
        g++;
    } g++ g if(A==7){
        na++;
} A==7 A 7 {
        na++;
} na++ na if(B==5){
        g++;
    }else if(B==7){
        na++;
} B==5 B 5 {
        g++;
    } g++ g if(B==7){
        na++;
} B==7 B 7 {
        na++;
} na++ na if(C==5){
        g++;
    }else if(C==7){
        na++;    
    } C==5 C 5 {
        g++;
    } g++ g if(C==7){
        na++;    
    } C==7 C 7 {
        na++;    
    } na++ na if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    } g==2 && na==1 g==2 g 2 na==1 na 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 A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==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 A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
}
    } Main
import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    
    int g = 0;
    int na = 0;
    if(A==5){
        g++;
    }else if(A==7){
        na++;
}
    if(B==5){
        g++;
    }else if(B==7){
        na++;
}
    if(C==5){
        g++;
    }else if(C==7){
        na++;    
    }
    
    if(g==2 && na==1){
    System.out.println("YES");
    }else{
    System.out.println("NO");    
    }
}
    }