import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          }
} import java.util.*; util.* java public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          }
} Main public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          } main {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc String c = sc.next(); c sc.next() sc.next sc String[] list = {a, b, c}; list {a, b, c} a b c Arrays.sort(list) Arrays.sort Arrays list if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            } "5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2]) "5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2]) "5".equals(list[0]) "5".equals "5" list[0] list 0 "5".equals(list[1]) "5".equals "5" list[1] list 1 "7".equals(list[2]) "7".equals "7" list[2] list 2 {
              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 sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          }
} public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          }
} Main
import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String a = sc.next();
            String b = sc.next();
            String c = sc.next();
            String[] list = {a, b, c};
            Arrays.sort(list);
            if("5".equals(list[0]) && "5".equals(list[1]) && "7".equals(list[2])){
              System.out.println("YES");
            } else {
              System.out.println("NO");
            }
          }
}