import java.util.*;
public class Main {
    
    static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    }
    
    public static void main(String args[]) {
        solve();
    }
} import java.util.*; util.* java public class Main {
    
    static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    }
    
    public static void main(String args[]) {
        solve();
    }
} Main static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    } solve {
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int fives = 0 fives 0 seven = 0; seven 0 int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()}; a {sc.nextInt(),sc.nextInt(),sc.nextInt()} sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        } int i a {
            if(i==5) fives++;
            if(i==7) seven++;
        } {
            if(i==5) fives++;
            if(i==7) seven++;
        } if(i==5) fives++; i==5 i 5 fives++ fives if(i==7) seven++; i==7 i 7 seven++ seven System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO") System.out.println System.out System System.out ((fives==2)&&(seven==1)) ? "YES" : "NO" ((fives==2)&&(seven==1)) (fives==2) fives 2 (seven==1) seven 1 "YES" "NO" sc.close() sc.close sc public static void main(String args[]) {
        solve();
    } main {
        solve();
    } solve() solve String args[] args public class Main {
    
    static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    }
    
    public static void main(String args[]) {
        solve();
    }
} public class Main {
    
    static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    }
    
    public static void main(String args[]) {
        solve();
    }
} Main
import java.util.*;
public class Main {
    
    static void solve(){
        Scanner sc = new Scanner(System.in);
        int fives = 0, seven = 0;
        int[] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
        for(int i : a){
            if(i==5) fives++;
            if(i==7) seven++;
        }
        System.out.println(((fives==2)&&(seven==1)) ? "YES" : "NO");
        sc.close();
    }
    
    public static void main(String args[]) {
        solve();
    }
}