public static void main ( String [ ] args ) {
  Scanner in = new Scanner ( System . in ) ;
  char [ ] S = in . next ( ) . toCharArray ( ) ;
  int length = S . length ;
  int rows = ( length + 19 ) / 20 ;
  int inRow = length / rows ;
  int remainder = length % rows ;
  int colums = inRow + ( ( remainder == 0 ) ? 0 : 1 ) ;
  StringBuilder sb = new StringBuilder ( ) ;
  int pos = 0 ;
  for ( int row = 0 ;
  row < rows ;
  row ++ ) {
    for ( int i = 0 ;
    i < inRow ;
    i ++ ) {
      sb . append ( S [ pos ++ ] ) ;
    }
    if ( remainder != 0 ) {
      sb . append ( ( row < remainder ) ? S [ pos ++ ] : '*' ) ;
    }
    sb . append ( '\n' ) ;
  }
  System . out . println ( rows + " " + colums ) ;
  System . out . print ( sb ) ;
}

public static void main ( String [ ] args ) { Scanner in = new Scanner ( System . in ) ; char [ ] S = in . next ( ) . toCharArray ( ) ; int length = S . length ; int rows = ( length + 19 ) / 20 ; int inRow = length / rows ; int remainder = length % rows ; int colums = inRow + ( ( remainder == 0 ) ? 0 : 1 ) ; StringBuilder sb = new StringBuilder ( ) ; int pos = 0 ; for ( int row = 0 ; row < rows ; row ++ ) { for ( int i = 0 ; i < inRow ; i ++ ) { sb . append ( S [ pos ++ ] ) ; } if ( remainder != 0 ) { sb . append ( ( row < remainder ) ? S [ pos ++ ] : ' * ' ) ; } sb . append ( ' \n ' ) ; } System . out . println ( rows + " ▁ " + colums ) ; System . out . print ( sb ) ; }
(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: (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: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (parenthesized_expression (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (decimal_integer_literal) alternative: (decimal_integer_literal)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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: (identifier)) 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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (update_expression (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (array_access array: (identifier) index: (update_expression (identifier))) alternative: (character_literal))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))