import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) { Main main=new Main(); main.run(); } void run() { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] w=new int[n]; for (int i = 0; i < w.length; i++) { w[i]=sc.nextInt(); } Arrays.sort(w); int[] dp= new int[10001]; int sum=0; dp[0]=1; for(int i=0;i