import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    } main {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) Map<Integer, Integer> map = new HashMap<>(); map new HashMap<>() for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        } {
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        } int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan map.put(k, map.getOrDefault(k,0)+1) map.put map k map.getOrDefault(k,0)+1 map.getOrDefault(k,0) map.getOrDefault map k 0 1 if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        } map.get(5) == 2 && map.get(7) ==1 map.get(5) == 2 map.get(5) map.get map 5 2 map.get(7) ==1 map.get(7) map.get map 7 1 {
            System.out.println("YES");
            return;
        } System.out.println("YES") System.out.println System.out System System.out "YES" return; 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) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

        System.out.println("NO");
    }
}
