using System; class Program { static void Main() { double n = long.Parse(Console.ReadLine()); double ans =Math.Round( Math.Sqrt( n/3)); Console.WriteLine(ans); } }