using System; public class Test { public static void Main() { long n = long.Parse(Console.ReadLine()); Console.WriteLine((long)Math.Sqrt(n / 3)); } }