n=input("n = ");
p=0;
while n>=2*p+1
  n=n-(2*p+1);
  p=p+1;
end ;
disp(p);
