import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] E = new int[N]; for( int i = 0; i < N; i++ ) { E[i] = sc.nextInt(); } int lim = (int)Math.pow(3,N); for( int i = 0; i < lim; i++ ) { String state = String.format("%-13s",Integer.toString(i,3)).replace(" ","0"); char[] c = state.toCharArray(); int[] sum = new int[3]; for( int j = 0; j < N; j++ ) { int index = c[j]-'0'; sum[index] += E[j]; } if( sum[0] == sum[1] && sum[1] == sum[2] ) { System.out.println("Yes"); return; } } System.out.println("No"); } }