public static void main ( String args [ ] ) {
  Scanner sc = new Scanner ( System . in ) ;
  double a = sc . nextDouble ( ) ;
  double b = sc . nextDouble ( ) ;
  double c = sc . nextDouble ( ) ;
  if ( a == 0 && b != 0 ) {
    double ans = - ( c / b ) ;
    System . out . format ( "1\n%.5f" , ans ) ;
  }
  else if ( a == 0 && b == 0 && c == 0 ) {
    System . out . println ( "-1" ) ;
  }
  else if ( a == 0 && b == 0 && c != 0 ) {
    System . out . println ( "0" ) ;
  }
  else {
    double r1 , r2 ;
    double det = b * b - 4 * a * c ;
    if ( det > 0 ) {
      System . out . println ( "2" ) ;
      r1 = ( - b + Math . sqrt ( det ) ) / ( 2 * a ) ;
      r2 = ( - b - Math . sqrt ( det ) ) / ( 2 * a ) ;
      double x = ( r1 < r2 ) ? r1 : r2 ;
      double y = ( r1 > r2 ) ? r1 : r2 ;
      System . out . format ( "%.5f\n%.5f\n" , x , y ) ;
    }
    else if ( det == 0 ) {
      r1 = ( - b + Math . sqrt ( det ) ) / ( 2 * a ) ;
      System . out . format ( "1\n%.5f" , r1 ) ;
    }
    else System . out . println ( "0" ) ;
  }
}

public static void main ( String args [ ] ) { Scanner sc = new Scanner ( System . in ) ; double a = sc . nextDouble ( ) ; double b = sc . nextDouble ( ) ; double c = sc . nextDouble ( ) ; if ( a == 0 && b != 0 ) { double ans = - ( c / b ) ; System . out . format ( "1 \n % .5f " , ans ) ; } else if ( a == 0 && b == 0 && c == 0 ) { System . out . println ( " - 1" ) ; } else if ( a == 0 && b == 0 && c != 0 ) { System . out . println ( "0" ) ; } else { double r1 , r2 ; double det = b * b - 4 * a * c ; if ( det > 0 ) { System . out . println ( "2" ) ; r1 = ( - b + Math . sqrt ( det ) ) / ( 2 * a ) ; r2 = ( - b - Math . sqrt ( det ) ) / ( 2 * a ) ; double x = ( r1 < r2 ) ? r1 : r2 ; double y = ( r1 > r2 ) ? r1 : r2 ; System . out . format ( " % .5f \n % .5f \n " , x , y ) ; } else if ( det == 0 ) { r1 = ( - b + Math . sqrt ( det ) ) / ( 2 * a ) ; System . out . format ( "1 \n % .5f " , r1 ) ; } else System . out . println ( "0" ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) 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: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_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: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression operand: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression operand: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (identifier) alternative: (identifier)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (identifier) alternative: (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier) (identifier))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression operand: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier))))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))))))