import java.util.*;

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

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int s=1;
        for(int i=0;i<3;i++)
            s*=sc.nextInt();
        if(s==175)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
}