import java.util.Scanner;

/**
 * @author yoshizaki
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    } main {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    } Scanner scanner= new Scanner(System.in); scanner new Scanner(System.in) int first = scanner.nextInt(); first scanner.nextInt() scanner.nextInt scanner int second = scanner.nextInt(); second scanner.nextInt() scanner.nextInt scanner int therd = scanner.nextInt(); therd scanner.nextInt() scanner.nextInt scanner int[] words = {first, second, therd}; words {first, second, therd} first second therd String answer = "NO"; answer "NO" int word = 0; word 0 int fCount = 0; fCount 0 int sCount = 0; sCount 0 for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        } int w words {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        } {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        } if (w == 5) fCount++; w == 5 w 5 fCount++ fCount if (w == 7) sCount++; w == 7 w 7 sCount++ sCount if(fCount == 2 && sCount == 1) answer = "YES"; fCount == 2 && sCount == 1 fCount == 2 fCount 2 sCount == 1 sCount 1 answer = "YES" answer "YES" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    }
} Main
import java.util.Scanner;

/**
 * @author yoshizaki
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int first = scanner.nextInt();
        int second = scanner.nextInt();
        int therd = scanner.nextInt();
        int[] words = {first, second, therd}; 
        String answer = "NO";
        
        int word = 0;
        int fCount = 0;
        int sCount = 0;
                
        for (int w :words) {
            if (w == 5) fCount++;
            if (w == 7) sCount++;
        }
        if(fCount == 2 && sCount == 1) answer = "YES";
        
        System.out.println(answer);
    }
}
