import math n = int(input()) r = math.sqrt(n/3) print(int(r+10**6))