#include
#include
#include
using namespace std;
int main()
{
double a, x0, x1, t;
int n = 1;
cin >> a;
x0 = a / 2;
x1= 1.0/ 2 * (x0 + a / x0);
while (x1 - x0 >= pow(10, -5))
{
t = x1;
x1 = 1.0/ 2 * (x0 + a / x0);
x0 = x1;
n++;
}
cout << fixed<<setprecision(6)<<x1;
return 0;
}