import java.util.*;
import java.io.*;
class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int A = Integer.parseInt(st.nextToken());    
        int B = Integer.parseInt(st.nextToken());    
        int C = Integer.parseInt(st.nextToken());
        int five=0,sev=0;
        if(A==5)
            five++;
        else
            sev++;
        if(B==5)
            five++;
        else
            sev++;
        if(C==5)
            five++;
        else
            sev++;

        if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
}

//10 3 10 3 import java.util.*; util.* java import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int A = Integer.parseInt(st.nextToken());    
        int B = Integer.parseInt(st.nextToken());    
        int C = Integer.parseInt(st.nextToken());
        int five=0,sev=0;
        if(A==5)
            five++;
        else
            sev++;
        if(B==5)
            five++;
        else
            sev++;
        if(C==5)
            five++;
        else
            sev++;

        if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int A = Integer.parseInt(st.nextToken());    
        int B = Integer.parseInt(st.nextToken());    
        int C = Integer.parseInt(st.nextToken());
        int five=0,sev=0;
        if(A==5)
            five++;
        else
            sev++;
        if(B==5)
            five++;
        else
            sev++;
        if(C==5)
            five++;
        else
            sev++;

        if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO");

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int A = Integer.parseInt(st.nextToken());    
        int B = Integer.parseInt(st.nextToken());    
        int C = Integer.parseInt(st.nextToken());
        int five=0,sev=0;
        if(A==5)
            five++;
        else
            sev++;
        if(B==5)
            five++;
        else
            sev++;
        if(C==5)
            five++;
        else
            sev++;

        if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO");

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int A = Integer.parseInt(st.nextToken()); A Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int B = Integer.parseInt(st.nextToken()); B Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int C = Integer.parseInt(st.nextToken()); C Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int five=0 five 0 sev=0; sev 0 if(A==5)
            five++;
        else
            sev++; A==5 A 5 five++ five sev++ sev if(B==5)
            five++;
        else
            sev++; B==5 B 5 five++ five sev++ sev if(C==5)
            five++;
        else
            sev++; C==5 C 5 five++ five sev++ sev if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO"); sev==1 && five==2 sev==1 sev 1 five==2 five 2 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args
import java.util.*;
import java.io.*;
class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int A = Integer.parseInt(st.nextToken());    
        int B = Integer.parseInt(st.nextToken());    
        int C = Integer.parseInt(st.nextToken());
        int five=0,sev=0;
        if(A==5)
            five++;
        else
            sev++;
        if(B==5)
            five++;
        else
            sev++;
        if(C==5)
            five++;
        else
            sev++;

        if(sev==1 && five==2)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
}

//10 3 10 3