import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        boolean flag = false;
        if (a == 5 && b == 5 && c == 7) flag = true;
        if (a == 5 && b == 7 && c == 5) flag = true;
        if (a == 7 && b == 5 && c == 5) flag = true;
        if (flag) System.out.println("YES");
        else System.out.println("NO");
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        boolean flag = false;
        if (a == 5 && b == 5 && c == 7) flag = true;
        if (a == 5 && b == 7 && c == 5) flag = true;
        if (a == 7 && b == 5 && c == 5) flag = true;
        if (flag) System.out.println("YES");
        else System.out.println("NO");
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        boolean flag = false;
        if (a == 5 && b == 5 && c == 7) flag = true;
        if (a == 5 && b == 7 && c == 5) flag = true;
        if (a == 7 && b == 5 && c == 5) flag = true;
        if (flag) System.out.println("YES");
        else System.out.println("NO");
    } main {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        boolean flag = false;
        if (a == 5 && b == 5 && c == 7) flag = true;
        if (a == 5 && b == 7 && c == 5) flag = true;
        if (a == 7 && b == 5 && c == 5) flag = true;
        if (flag) System.out.println("YES");
        else System.out.println("NO");
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) int a = inp.nextInt(); a inp.nextInt() inp.nextInt inp int b = inp.nextInt(); b inp.nextInt() inp.nextInt inp int c = inp.nextInt(); c inp.nextInt() inp.nextInt inp boolean flag = false; flag false if (a == 5 && b == 5 && c == 7) flag = true; a == 5 && b == 5 && c == 7 a == 5 && b == 5 && c == 7 a == 5 a 5 b == 5 b 5 c == 7 c 7 flag = true flag true if (a == 5 && b == 7 && c == 5) flag = true; a == 5 && b == 7 && c == 5 a == 5 && b == 7 && c == 5 a == 5 a 5 b == 7 b 7 c == 5 c 5 flag = true flag true if (a == 7 && b == 5 && c == 5) flag = true; a == 7 && b == 5 && c == 5 a == 7 && b == 5 && c == 5 a == 7 a 7 b == 5 b 5 c == 5 c 5 flag = true flag true if (flag) System.out.println("YES");
        else System.out.println("NO"); flag 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.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        boolean flag = false;
        if (a == 5 && b == 5 && c == 7) flag = true;
        if (a == 5 && b == 7 && c == 5) flag = true;
        if (a == 7 && b == 5 && c == 5) flag = true;
        if (flag) System.out.println("YES");
        else System.out.println("NO");
    }
}