#include <stdio.h>


double sqrt(double x);



static double epsilon = 0.001;



double sqrt(double x)
{
  double low  = 0.0;
  double high = x;
  double root;

  while (high - low > epsilon) {
    root = (high + low) / 2.0;
    if (root * root > x)
      high = root;
    else
      low  = root;
    printf("%E %E %E\n", high, low, root);
  }

  return root;
}



main()
{
  double input, output;

  scanf("%E", &input);

  output = sqrt(input);
  
  printf("sqrt(%E) = %E\n", input, output);
}

