import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  }


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  }


} Main public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  } main {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  } BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String s = r.readLine(); s r.readLine() r.readLine r String[] sl = s.split(" "); sl s.split(" ") s.split s " " int n = Integer.parseInt(sl[0]); n Integer.parseInt(sl[0]) Integer.parseInt Integer sl[0] sl 0 s = r.readLine() s r.readLine() r.readLine r sl = s.split(" ") sl s.split(" ") s.split s " " int max = 0; max 0 int sum = 0; sum 0 for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    } {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    } int z = Integer.parseInt(sl[i]); z Integer.parseInt(sl[i]) Integer.parseInt Integer sl[i] sl i max = Math.max(z, max) max Math.max(z, max) Math.max Math z max sum += z sum z System.out.println(max < (sum - max) ? "Yes" : "No") System.out.println System.out System System.out max < (sum - max) ? "Yes" : "No" max < (sum - max) max (sum - max) sum max "Yes" "No" String[] args args public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  }


} public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  }


} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split(" ");
    int n = Integer.parseInt(sl[0]);
    
    s = r.readLine();
    sl = s.split(" ");
    int max = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
      int z = Integer.parseInt(sl[i]);
      max = Math.max(z, max);
      sum += z;
    }

    System.out.println(max < (sum - max) ? "Yes" : "No");
  }


}
