import math, strutils let n: int = stdin.readline.parseInt ans: int = sqrt(n / 3).int echo ans