import java.util.ArrayList;
import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main
{

	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	}

} Main public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	} main {
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int number = in.nextInt(); number in.nextInt() in.nextInt in ArrayList<Integer> list = new ArrayList<> (number); list new ArrayList<> (number) for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
			list.add(in.nextInt());
		} {
			list.add(in.nextInt());
		} list.add(in.nextInt()) list.add list in.nextInt() in.nextInt in int max = list.get(0); max list.get(0) list.get list 0 int sum = 0; sum 0 for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		} int i = 1; int i = 1; i 1 i < list.size() i list.size() list.size list i++ i++ i {
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		} {
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		} int temp = list.get(i); temp list.get(i) list.get list i sum += temp sum temp if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			} temp > max temp max {
				sum += max;
				sum -= temp;
				max = temp;
			} sum += max sum max sum -= temp sum temp max = temp max temp if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No"); max < sum max sum 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)
	{
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			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 number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int number = in.nextInt();
		ArrayList<Integer> list = new ArrayList<> (number);
		for(int i = 0; i < number; i++)
		{
			list.add(in.nextInt());
		}
		int max = list.get(0);
		int sum = 0;
		for(int i = 1; i < list.size(); i++)
		{
			int temp = list.get(i);
			sum += temp;
			if(temp > max)
			{
				sum += max;
				sum -= temp;
				max = temp;
			}
		}
//		System.out.println("max is " + max);
//		System.out.println("sum is " + sum);
		if(max < sum)
			System.out.println("Yes");
		else
			System.out.println("No");
	
	}

}