public static void main ( String [ ] args ) {
  try {
    File file = new File ( "C-large.in" ) ;
    FileInputStream fis = new FileInputStream ( file ) ;
    BufferedInputStream bis = new BufferedInputStream ( fis ) ;
    BufferedReader dis = new BufferedReader ( new InputStreamReader ( bis ) ) ;
    File ofile = new File ( "C-large.out" ) ;
    if ( ! ofile . exists ( ) ) {
      ofile . createNewFile ( ) ;
    }
    PrintStream out = new PrintStream ( new FileOutputStream ( ofile ) ) ;
    int [ ] [ ] f = new int [ 501 ] [ 501 ] ;
    for ( int i = 0 ;
    i < 501 ;
    i ++ ) {
      for ( int j = 0 ;
      j < 501 ;
      j ++ ) {
        if ( i == 0 ) {
          f [ i ] [ j ] = 1 ;
        }
        else {
          for ( int k = 1 ;
          k <= j ;
          k ++ ) {
            if ( k > i ) break ;
            f [ i ] [ j ] += f [ i - k ] [ j ] ;
          }
          f [ i ] [ j ] %= 100003 ;
        }
      }
    }
    int [ ] f2 = new int [ 501 ] ;
    for ( int i = 1 ;
    i < 501 ;
    i ++ ) {
      for ( int j = 0 ;
      j <= i ;
      j ++ ) {
        f2 [ i ] += f [ j ] [ i - j ] ;
        f2 [ i ] %= 100003 ;
      }
    }
    int T = Integer . parseInt ( dis . readLine ( ) ) ;
    int c = 0 ;
    while ( c ++ < T ) {
      out . print ( "Case #" + c + ": " ) ;
      out . println ( f2 [ Integer . parseInt ( dis . readLine ( ) ) - 1 ] ) ;
    }
    fis . close ( ) ;
    bis . close ( ) ;
    dis . close ( ) ;
  }
  catch ( FileNotFoundException e ) {
    e . printStackTrace ( ) ;
  }
  catch ( IOException e ) {
    e . printStackTrace ( ) ;
  }
}

public static void main ( String [ ] args ) { try { File file = new File ( " C - large . in " ) ; FileInputStream fis = new FileInputStream ( file ) ; BufferedInputStream bis = new BufferedInputStream ( fis ) ; BufferedReader dis = new BufferedReader ( new InputStreamReader ( bis ) ) ; File ofile = new File ( " C - large . out " ) ; if ( ! ofile . exists ( ) ) { ofile . createNewFile ( ) ; } PrintStream out = new PrintStream ( new FileOutputStream ( ofile ) ) ; int [ ] [ ] f = new int [ 501 ] [ 501 ] ; for ( int i = 0 ; i < 501 ; i ++ ) { for ( int j = 0 ; j < 501 ; j ++ ) { if ( i == 0 ) { f [ i ] [ j ] = 1 ; } else { for ( int k = 1 ; k <= j ; k ++ ) { if ( k > i ) break ; f [ i ] [ j ] += f [ i - k ] [ j ] ; } f [ i ] [ j ] %= 100003 ; } } } int [ ] f2 = new int [ 501 ] ; for ( int i = 1 ; i < 501 ; i ++ ) { for ( int j = 0 ; j <= i ; j ++ ) { f2 [ i ] += f [ j ] [ i - j ] ; f2 [ i ] %= 100003 ; } } int T = Integer . parseInt ( dis . readLine ( ) ) ; int c = 0 ; while ( c ++ < T ) { out . print ( " Case ▁ # " + c + " : ▁ " ) ; out . println ( f2 [ Integer . parseInt ( dis . readLine ( ) ) - 1 ] ) ; } fis . close ( ) ; bis . close ( ) ; dis . close ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
(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 (try_statement body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (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 (identifier))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) consequence: (block (expression_statement (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 (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (decimal_integer_literal)) 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 (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_integer_literal)))) alternative: (block (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (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: (identifier))) index: (identifier)))))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_integer_literal))))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) 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 (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: (array_access array: (array_access array: (identifier) index: (identifier)) index: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))))))) (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: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (identifier))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) right: (decimal_integer_literal)))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))))))