import math menseki = int(input()) hankei = int(math.sqrt(menseki/3)) print(hankei)