public static void main ( String [ ] args ) {
  BigInteger [ ] [ ] combine = new BigInteger [ 512 ] [ 512 ] ;
  BigInteger [ ] [ ] a = new BigInteger [ 512 ] [ 512 ] ;
  BigInteger [ ] s = new BigInteger [ 512 ] ;
  for ( int i = 0 ;
  i < 512 ;
  i ++ ) {
    combine [ i ] [ 0 ] = BigInteger . ONE ;
    combine [ i ] [ i ] = BigInteger . ONE ;
    for ( int j = 1 ;
    j < i ;
    j ++ ) {
      combine [ i ] [ j ] = combine [ i - 1 ] [ j ] . add ( combine [ i - 1 ] [ j - 1 ] ) ;
    }
    for ( int j = 0 ;
    j < 512 ;
    j ++ ) a [ i ] [ j ] = BigInteger . ZERO ;
    s [ i ] = BigInteger . ZERO ;
  }
  for ( int n = 2 ;
  n < 512 ;
  n ++ ) {
    a [ n ] [ 1 ] = BigInteger . ONE ;
    for ( int m = 2 ;
    m < n ;
    m ++ ) {
      a [ n ] [ m ] = BigInteger . ZERO ;
      for ( int k = 1 ;
      k < m ;
      k ++ ) {
        int N = n - m - 1 ;
        int M = m - k - 1 ;
        if ( M >= 0 && M <= N ) {
          a [ n ] [ m ] = a [ n ] [ m ] . add ( combine [ N ] [ M ] . multiply ( a [ m ] [ k ] ) ) ;
        }
      }
    }
    for ( int m = 1 ;
    m < n ;
    m ++ ) {
      s [ n ] = s [ n ] . add ( a [ n ] [ m ] ) ;
    }
  }
  Scanner sc = new Scanner ( System . in ) ;
  int tests = sc . nextInt ( ) ;
  for ( int cas = 1 ;
  cas <= tests ;
  cas ++ ) {
    int n = sc . nextInt ( ) ;
    System . out . println ( "Case #" + cas + ": " + ( s [ n ] . mod ( BigInteger . valueOf ( 100003 ) ) ) ) ;
  }
}

public static void main ( String [ ] args ) { BigInteger [ ] [ ] combine = new BigInteger [ 512 ] [ 512 ] ; BigInteger [ ] [ ] a = new BigInteger [ 512 ] [ 512 ] ; BigInteger [ ] s = new BigInteger [ 512 ] ; for ( int i = 0 ; i < 512 ; i ++ ) { combine [ i ] [ 0 ] = BigInteger . ONE ; combine [ i ] [ i ] = BigInteger . ONE ; for ( int j = 1 ; j < i ; j ++ ) { combine [ i ] [ j ] = combine [ i - 1 ] [ j ] . add ( combine [ i - 1 ] [ j - 1 ] ) ; } for ( int j = 0 ; j < 512 ; j ++ ) a [ i ] [ j ] = BigInteger . ZERO ; s [ i ] = BigInteger . ZERO ; } for ( int n = 2 ; n < 512 ; n ++ ) { a [ n ] [ 1 ] = BigInteger . ONE ; for ( int m = 2 ; m < n ; m ++ ) { a [ n ] [ m ] = BigInteger . ZERO ; for ( int k = 1 ; k < m ; k ++ ) { int N = n - m - 1 ; int M = m - k - 1 ; if ( M >= 0 && M <= N ) { a [ n ] [ m ] = a [ n ] [ m ] . add ( combine [ N ] [ M ] . multiply ( a [ m ] [ k ] ) ) ; } } } for ( int m = 1 ; m < n ; m ++ ) { s [ n ] = s [ n ] . add ( a [ n ] [ m ] ) ; } } Scanner sc = new Scanner ( System . in ) ; int tests = sc . nextInt ( ) ; for ( int cas = 1 ; cas <= tests ; cas ++ ) { int n = sc . nextInt ( ) ; System . out . println ( " Case ▁ # " + cas + " : ▁ " + ( s [ n ] . mod ( BigInteger . valueOf ( 100003 ) ) ) ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (decimal_integer_literal)) dimensions: (dimensions_expr (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (decimal_integer_literal)) dimensions: (dimensions_expr (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (decimal_integer_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: (decimal_integer_literal)) 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: (field_access object: (identifier) field: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (field_access object: (identifier) field: (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: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (method_invocation object: (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) index: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) index: (binary_expression left: (identifier) right: (decimal_integer_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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (field_access object: (identifier) field: (identifier))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (field_access object: (identifier) field: (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: (decimal_integer_literal)) 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: (field_access object: (identifier) field: (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: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (field_access object: (identifier) field: (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: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (method_invocation object: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (array_access array: (identifier) index: (identifier)) index: (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: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))))))))) (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)))) (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)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal)) right: (parenthesized_expression (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))))))))))