public static void main ( String args [ ] ) {
  Scanner sc = new Scanner ( System . in ) ;
  int q = sc . nextInt ( ) ;
  while ( q -- > 0 ) {
    int n = sc . nextInt ( ) ;
    int ar [ ] = new int [ n ] ;
    int i = 0 ;
    int s = 0 ;
    for ( i = 0 ;
    i < n ;
    i ++ ) {
      ar [ i ] = sc . nextInt ( ) ;
      s += ar [ i ] ;
    }
    if ( s % 2 != 0 ) {
      System . out . println ( "NO" ) ;
      continue ;
    }
    boolean dp [ ] [ ] = new boolean [ n + 1 ] [ s + 1 ] ;
    int j = 0 ;
    for ( i = 0 ;
    i <= s ;
    i ++ ) {
      dp [ 0 ] [ i ] = false ;
    }
    for ( i = 0 ;
    i <= n ;
    i ++ ) {
      dp [ i ] [ 0 ] = true ;
    }
    for ( i = 1 ;
    i <= n ;
    i ++ ) {
      for ( j = 1 ;
      j <= s ;
      j ++ ) {
        dp [ i ] [ j ] = dp [ i - 1 ] [ j ] ;
        if ( j - ar [ i - 1 ] >= 0 ) dp [ i ] [ j ] = dp [ i ] [ j ] || dp [ i - 1 ] [ j - ar [ i - 1 ] ] ;
      }
    }
    if ( dp [ n ] [ s / 2 ] ) {
      System . out . println ( "YES" ) ;
    }
    else {
      System . out . println ( "NO" ) ;
    }
  }
}

public static void main ( String args [ ] ) { Scanner sc = new Scanner ( System . in ) ; int q = sc . nextInt ( ) ; while ( q -- > 0 ) { int n = sc . nextInt ( ) ; int ar [ ] = new int [ n ] ; int i = 0 ; int s = 0 ; for ( i = 0 ; i < n ; i ++ ) { ar [ i ] = sc . nextInt ( ) ; s += ar [ i ] ; } if ( s % 2 != 0 ) { System . out . println ( " NO " ) ; continue ; } boolean dp [ ] [ ] = new boolean [ n + 1 ] [ s + 1 ] ; int j = 0 ; for ( i = 0 ; i <= s ; i ++ ) { dp [ 0 ] [ i ] = false ; } for ( i = 0 ; i <= n ; i ++ ) { dp [ i ] [ 0 ] = true ; } for ( i = 1 ; i <= n ; i ++ ) { for ( j = 1 ; j <= s ; j ++ ) { dp [ i ] [ j ] = dp [ i - 1 ] [ j ] ; if ( j - ar [ i - 1 ] >= 0 ) dp [ i ] [ j ] = dp [ i ] [ j ] || dp [ i - 1 ] [ j - ar [ i - 1 ] ] ; } } if ( dp [ n ] [ s / 2 ] ) { System . out . println ( " YES " ) ; } else { System . out . println ( " NO " ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (array_access array: (identifier) index: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (continue_statement))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (boolean_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal))) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (decimal_integer_literal)) index: (identifier)) right: (false))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (true))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) index: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) index: (binary_expression left: (identifier) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))))))))))) (if_statement condition: (parenthesized_expression (array_access array: (array_access array: (identifier) index: (identifier)) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))))