import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}}}
         import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}}} Main public static void main(String[] args) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}} main {
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] list = reader.readLine().split(" "); list reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int[] l = new int[3]; l new int[3] 3 int t = 0; t 0 for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            } String p list {
        	l[t] = Integer.parseInt(p);
        	t++;
            } {
        	l[t] = Integer.parseInt(p);
        	t++;
            } l[t] = Integer.parseInt(p) l[t] l t Integer.parseInt(p) Integer.parseInt Integer p t++ t Arrays.sort(l) Arrays.sort Arrays l if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");} l[0]==5 && l[1]==5 && l[2]==7 l[0]==5 && l[1]==5 && l[2]==7 l[0]==5 l[0] l 0 5 l[1]==5 l[1] l 1 5 l[2]==7 l[2] l 2 7 {
        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) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}}} public class Main{
	public static void main(String[] args) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}}} Main
import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args) throws IOException{
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] list = reader.readLine().split(" ");
        int[] l = new int[3];
        int t = 0;
        for(String p:list){
        	l[t] = Integer.parseInt(p);
        	t++;
            }
        Arrays.sort(l);
        if(l[0]==5 && l[1]==5 && l[2]==7){
        System.out.println("YES");
        }
        else {
        System.out.println("NO");}}}
        