import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    }
} Main public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    } solve {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int[] d = new int[11]; d new int[11] 11 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 d[scan.nextInt()] += 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 boolean answer = false; answer false if (d[5] == 2 && d[7] == 1) {
            answer = true;
        } d[5] == 2 && d[7] == 1 d[5] == 2 d[5] d 5 2 d[7] == 1 d[7] d 7 1 {
            answer = true;
        } answer = true answer true System.out.println(answer ? "YES" : "NO") System.out.println System.out System System.out answer ? "YES" : "NO" answer "YES" "NO" public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int[] d = new int[11];
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        d[scan.nextInt()] += 1;
        boolean answer = false;
        if (d[5] == 2 && d[7] == 1) {
            answer = true;
        }
        System.out.println(answer ? "YES" : "NO");
    }
}
