from math import sqrt s = int(input()) ans = int(sqrt(s/3))