def main(): n=int(input()) ok=10**6;ng=0 while ok-ng>0.1: mid=(ok+ng)/2 if mid**2*3>=n: ok=mid else: ng=mid print(int(ok)) main()