import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    } main {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int five = 0; five 0 int seven = 0; seven 0 for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        } {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        } int t = in.nextInt(); t in.nextInt() in.nextInt in if(t == 5) five++; t == 5 t 5 five++ five if(t == 7) seven++; t == 7 t 7 seven++ seven if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        } five == 2 && seven == 1 five == 2 five 2 seven == 1 seven 1 {
            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) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int five = 0;
        int seven = 0;
        for (int i = 0; i < 3; i++) {
            int t = in.nextInt();
            if(t == 5) five++;
            if(t == 7) seven++;
        }
        if(five == 2 && seven == 1){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
}
