//Binary Search » Step 2 » E.Equation
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
ios::sync_with_stdio(false); cin.tie(nullptr);
double n; cin>>n;
double l=0,r=n,mid;
while(r-l>0.0000001){
mid=(l+r)/2.0;
if(mid*mid+sqrt(mid)>n) r=mid;
else l=mid;
}
cout<<fixed<<setprecision(12)<<l;
}
Ly9CaW5hcnkgU2VhcmNoIMK7IFN0ZXAgMiDCuyBFLkVxdWF0aW9uCiNpbmNsdWRlPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgaW50IGxvbmcgbG9uZwp1c2luZyBuYW1lc3BhY2Ugc3RkOwpzaWduZWQgbWFpbigpewoJaW9zOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOyBjaW4udGllKG51bGxwdHIpOwoJZG91YmxlIG47IGNpbj4+bjsKCWRvdWJsZSBsPTAscj1uLG1pZDsKCXdoaWxlKHItbD4wLjAwMDAwMDEpewoJCW1pZD0obCtyKS8yLjA7CgkJaWYobWlkKm1pZCtzcXJ0KG1pZCk+bikgcj1taWQ7CgkJZWxzZSBsPW1pZDsKCX0KCWNvdXQ8PGZpeGVkPDxzZXRwcmVjaXNpb24oMTIpPDxsOwp9