n = int(input()) r = (n/3)**(1/2) print(int(r)+1)