using System; using System.Linq; class Program { static void Main() { var N = long.Parse(Console.ReadLine()); var answer = ((N / 3) + (N / 5)) * 2; Console.WriteLine(answer); #if DEBUG Console.Read(); #endif } }