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