#include <bits/stdc++.h>
#define nl '\n'
#define ll long long int
using namespace std;
//* Use this for USACO Problems
void setIO(string s)
{
freopen((s + ".in").c_str(), "r", stdin);
freopen((s + ".out").c_str(), "w", stdout);
}
double n;
bool test(double k)
{
return k * k + sqrt(k) >= n;
}
int main()
{
// setIO("circlecross");
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
// cin >> t;
while (t--)
{
cin >> n;
double l, r, m;
l = 0;
r = 1e10;
for (int i = 0; i < 100; ++i)
{
m = (l + r) / 2;
if (test(m))
{
r = m;
}
else
{
l = m;
}
}
cout << setprecision(20) << l << nl;
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CgojZGVmaW5lIG5sICdcbicKI2RlZmluZSBsbCBsb25nIGxvbmcgaW50Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKLy8qIFVzZSB0aGlzIGZvciBVU0FDTyBQcm9ibGVtcwp2b2lkIHNldElPKHN0cmluZyBzKQp7CiAgICBmcmVvcGVuKChzICsgIi5pbiIpLmNfc3RyKCksICJyIiwgc3RkaW4pOwogICAgZnJlb3BlbigocyArICIub3V0IikuY19zdHIoKSwgInciLCBzdGRvdXQpOwp9Cgpkb3VibGUgbjsKYm9vbCB0ZXN0KGRvdWJsZSBrKQp7CiAgICByZXR1cm4gayAqIGsgKyBzcXJ0KGspID49IG47Cn0KCmludCBtYWluKCkKewogICAgLy8gc2V0SU8oImNpcmNsZWNyb3NzIik7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwogICAgY2luLnRpZSgwKTsKICAgIGNvdXQudGllKDApOwogICAgaW50IHQgPSAxOwogICAgLy8gY2luID4+IHQ7CgogICAgd2hpbGUgKHQtLSkKICAgIHsKICAgICAgICBjaW4gPj4gbjsKICAgICAgICBkb3VibGUgbCwgciwgbTsKICAgICAgICBsID0gMDsKICAgICAgICByID0gMWUxMDsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwMDsgKytpKQogICAgICAgIHsKICAgICAgICAgICAgbSA9IChsICsgcikgLyAyOwogICAgICAgICAgICBpZiAodGVzdChtKSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgciA9IG07CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBsID0gbTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBjb3V0IDw8IHNldHByZWNpc2lvbigyMCkgPDwgbCA8PCBubDsKICAgIH0KfQo=