import math menseki = int(input()) hankei = int(math.sqrt(menseki/3)) if hankei == 0: hankei = 1 print(hankei)