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