import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

	public static void main(String[] args) {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		}

}
 import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

	public static void main(String[] args) {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		}

} Main public static void main(String[] args) {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		} main {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		} Scanner scanner = null; scanner null scanner = new Scanner(System.in) scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner List<Integer> B =  new ArrayList<>(); B new ArrayList<>() try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      } catch(Exception e){
		      } Exception e {
		      } {
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } while(true){
		    		  B.add(scanner.nextInt());  
		    	  } true {
		    		  B.add(scanner.nextInt());  
		    	  } B.add(scanner.nextInt()) B.add B scanner.nextInt() scanner.nextInt scanner B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList()) B B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList()) B.stream().sorted(Comparator.reverseOrder()).collect B.stream().sorted(Comparator.reverseOrder()) B.stream().sorted B.stream() B.stream B Comparator.reverseOrder() Comparator.reverseOrder Comparator Collectors.toList() Collectors.toList Collectors int maxL = 0; maxL 0 int etcL = 0; etcL 0 for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      } int i = 0; int i = 0; i 0 A != i A i i++ i++ i {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      } {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      } if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  } i == 0 i 0 {
		    		  maxL = B.get(i);
		    	  } maxL = B.get(i) maxL B.get(i) B.get B i {
		    		  etcL += B.get(i); 
		    	  } etcL += B.get(i) etcL B.get(i) B.get B i if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      } etcL > maxL etcL maxL {
		    	  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 scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		}

} public class Main {

	public static void main(String[] args) {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		}

} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

	public static void main(String[] args) {

			  Scanner scanner = null;
		      scanner = new Scanner(System.in);

		      int A = scanner.nextInt();
		      List<Integer> B =  new ArrayList<>();
		      
		      try{
		    	  while(true){
		    		  B.add(scanner.nextInt());  
		    	  }
		      } catch(Exception e){
		      }
		      
		      B = B.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList());
		      
		      int maxL = 0;
		      int etcL = 0;
		      for (int i = 0; A != i ; i++) {
		    	  if (i == 0) {
		    		  maxL = B.get(i);
		    	  } else {
		    		  etcL += B.get(i); 
		    	  }
		      }
		      
		      if (etcL > maxL ) {
		    	  System.out.println("Yes");
		      } else {
		    	  System.out.println("No");
		      }
		}

}

