public static void main ( String ar [ ] ) throws Exception {
  BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  int t = Integer . parseInt ( br . readLine ( ) ) ;
  StringBuffer sb = new StringBuffer ( ) ;
  for ( int r = 0 ;
  r < t ;
  r ++ ) {
    int n = Integer . parseInt ( br . readLine ( ) ) ;
    String s1 [ ] = br . readLine ( ) . split ( " " ) ;
    int a [ ] = new int [ n ] ;
    for ( int i = 0 ;
    i < n ;
    i ++ ) a [ i ] = Integer . parseInt ( s1 [ i ] ) ;
    Arrays . sort ( a ) ;
    boolean b [ ] = new boolean [ 1000001 ] ;
    Arrays . fill ( b , true ) ;
    int k = 1 ;
    sb . append ( "YES" ) . append ( "\n" ) ;
    int count = 0 ;
    while ( count < n ) {
      while ( ! b [ k ] ) k ++ ;
      count ++ ;
      sb . append ( k ) . append ( " " ) ;
      for ( int i = 0 ;
      i < n ;
      i ++ ) {
        for ( int j = i + 1 ;
        j < n ;
        j ++ ) {
          int u = k + a [ j ] - a [ i ] ;
          if ( u <= 1000000 && u >= 1 ) b [ u ] = false ;
        }
      }
      k ++ ;
    }
    sb . append ( "\n" ) ;
  }
  System . out . println ( sb ) ;
}

public static void main ( String ar [ ] ) throws Exception { BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in ) ) ; int t = Integer . parseInt ( br . readLine ( ) ) ; StringBuffer sb = new StringBuffer ( ) ; for ( int r = 0 ; r < t ; r ++ ) { int n = Integer . parseInt ( br . readLine ( ) ) ; String s1 [ ] = br . readLine ( ) . split ( " ▁ " ) ; int a [ ] = new int [ n ] ; for ( int i = 0 ; i < n ; i ++ ) a [ i ] = Integer . parseInt ( s1 [ i ] ) ; Arrays . sort ( a ) ; boolean b [ ] = new boolean [ 1000001 ] ; Arrays . fill ( b , true ) ; int k = 1 ; sb . append ( " YES " ) . append ( " \n " ) ; int count = 0 ; while ( count < n ) { while ( ! b [ k ] ) k ++ ; count ++ ; sb . append ( k ) . append ( " ▁ " ) ; for ( int i = 0 ; i < n ; i ++ ) { for ( int j = i + 1 ; j < n ; j ++ ) { int u = k + a [ j ] - a [ i ] ; if ( u <= 1000000 && u >= 1 ) b [ u ] = false ; } } k ++ ; } sb . append ( " \n " ) ; } System . out . println ( sb ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (boolean_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (true)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) name: (identifier) arguments: (argument_list (string_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (while_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) body: (expression_statement (update_expression (identifier)))) (expression_statement (update_expression (identifier))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (string_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (array_access array: (identifier) index: (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: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (false)))))))) (expression_statement (update_expression (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))