from decimal import * import math n = int(input()) r = math.sqrt(Decimal(n) / Decimal(3) ) print(int(r))