import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int[] list = new int[3];
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    }
    
    //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int[] list = new int[3];
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    }
    
    //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} Main //フィールド
    Scanner sc; sc int[] list = new int[3]; list new int[3] 3 public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main m = new Main(sc); m new Main(sc) m.show(m.solve()) m.show m m.solve() m.solve m sc.close() sc.close sc String[] args args //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    } Main {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    } this.sc = sc this.sc this this.sc sc for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
        	list[i] = sc.nextInt();
        } {
        	list[i] = sc.nextInt();
        } list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc Scanner sc sc //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    } solve {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    } String answer = "NO"; answer "NO" int count5 = 0; count5 0 int count7 = 0; count7 0 for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        } {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        } if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	} list[i] == 5 list[i] list i 5 {
        		count5++;
        	} count5++ count5 if (list[i] == 7) {
        		count7++;
        	} list[i] == 7 list[i] list i 7 {
        		count7++;
        	} count7++ count7 if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        } count5 == 2 && count7 == 1 count5 == 2 count5 2 count7 == 1 count7 1 {
        	answer = "YES";
        } answer = "YES" answer "YES" return answer; answer //出力
    public void show(String answer) {
        System.out.println(answer);
    } show {
        System.out.println(answer);
    } System.out.println(answer) System.out.println System.out System System.out answer String answer answer public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int[] list = new int[3];
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    }
    
    //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int[] list = new int[3];
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    }
    
    //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int[] list = new int[3];
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        for (int i=0; i<3; i++) {
        	list[i] = sc.nextInt();
        }
    }
    
    //解答処理
    private String solve() {
        String answer = "NO";
        int count5 = 0;
        int count7 = 0;
        
        for (int i=0; i<3; i++) {
        	if (list[i] == 5) {
        		count5++;
        	} else if (list[i] == 7) {
        		count7++;
        	}
        }
        if (count5 == 2 && count7 == 1) {
        	answer = "YES";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

}
