from math import sqrt print(max(int(sqrt(int(input())/3)), 1000000))