public static void solve ( ) {
  long a = f . nl ( ) ;
  long b = f . nl ( ) ;
  int n = f . ni ( ) ;
  if ( a == 0 ) {
    if ( b == 0 ) {
      pn ( 0 ) ;
      return ;
    }
    pn ( "No solution" ) ;
    return ;
  }
  if ( b == 0 ) {
    if ( a == 0 ) {
      pn ( 0 ) ;
      return ;
    }
    pn ( 0 ) ;
    return ;
  }
  BigInteger aa = new BigInteger ( String . valueOf ( a ) ) ;
  BigInteger bb = new BigInteger ( String . valueOf ( b ) ) ;
  BigInteger nn = new BigInteger ( String . valueOf ( n ) ) ;
  BigInteger i = new BigInteger ( "-1000" ) ;
  BigInteger j = new BigInteger ( "1000" ) ;
  BigInteger one = new BigInteger ( "1" ) ;
  for ( ;
  i . compareTo ( j ) <= 0 ;
  i = i . add ( one ) ) {
    BigInteger temp = i . pow ( n ) ;
    temp = temp . multiply ( aa ) ;
    if ( temp . compareTo ( bb ) == 0 ) {
      pn ( i ) ;
      return ;
    }
  }
  pn ( "No solution" ) ;
}

public static void solve ( ) { long a = f . nl ( ) ; long b = f . nl ( ) ; int n = f . ni ( ) ; if ( a == 0 ) { if ( b == 0 ) { pn ( 0 ) ; return ; } pn ( " No ▁ solution " ) ; return ; } if ( b == 0 ) { if ( a == 0 ) { pn ( 0 ) ; return ; } pn ( 0 ) ; return ; } BigInteger aa = new BigInteger ( String . valueOf ( a ) ) ; BigInteger bb = new BigInteger ( String . valueOf ( b ) ) ; BigInteger nn = new BigInteger ( String . valueOf ( n ) ) ; BigInteger i = new BigInteger ( " - 1000" ) ; BigInteger j = new BigInteger ( "1000" ) ; BigInteger one = new BigInteger ( "1" ) ; for ( ; i . compareTo ( j ) <= 0 ; i = i . add ( one ) ) { BigInteger temp = i . pow ( n ) ; temp = temp . multiply ( aa ) ; if ( temp . compareTo ( bb ) == 0 ) { pn ( i ) ; return ; } } pn ( " No ▁ solution " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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: (identifier) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (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 (method_invocation object: (identifier) name: (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 (method_invocation object: (identifier) name: (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))))) (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 (string_literal))))) (for_statement condition: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)) update: (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier))) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))) (return_statement))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (string_literal))))))