using System; using System.Collections.Generic; public class Program { public static void Main() { double max = double.Parse(Console.ReadLine()); double res = (Math.Sqrt(4*max + 1) - 1) / 2; Console.WriteLine((long)res); } }