import math print(round(math.sqrt(int(input())/3)))