public static void main ( String [ ] args ) throws IOException {
  long q = input . nextLong ( ) ;
  if ( q == 1 || isPrime ( q ) ) {
    pr . print ( "1\n" + 0 ) ;
    pr . flush ( ) ;
    return ;
  }
  ArrayList list = new ArrayList ( ) ;
  for ( long i = 2 ;
  i * i <= q ;
  i ++ ) {
    while ( q % i == 0 ) {
      list . add ( i ) ;
      q /= i ;
    }
    if ( list . size ( ) >= 2 ) break ;
  }
  if ( q > 1 ) list . add ( q ) ;
  if ( list . size ( ) == 2 ) {
    pr . println ( 2 ) ;
  }
  else {
    pr . print ( "1\n" + Long . valueOf ( String . valueOf ( list . get ( 0 ) ) ) * Long . valueOf ( String . valueOf ( list . get ( 1 ) ) ) ) ;
  }
  pr . flush ( ) ;
}

public static void main ( String [ ] args ) throws IOException { long q = input . nextLong ( ) ; if ( q == 1 || isPrime ( q ) ) { pr . print ( "1 \n " + 0 ) ; pr . flush ( ) ; return ; } ArrayList list = new ArrayList ( ) ; for ( long i = 2 ; i * i <= q ; i ++ ) { while ( q % i == 0 ) { list . add ( i ) ; q /= i ; } if ( list . size ( ) >= 2 ) break ; } if ( q > 1 ) list . add ( q ) ; if ( list . size ( ) == 2 ) { pr . println ( 2 ) ; } else { pr . print ( "1 \n " + Long . valueOf ( String . valueOf ( list . get ( 0 ) ) ) * Long . valueOf ( String . valueOf ( list . get ( 1 ) ) ) ) ; } pr . flush ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (return_statement))) (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: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) update: (update_expression (identifier)) body: (block (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))) consequence: (break_statement)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))))))))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))