using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long count = 0; count += n / 3; count += n / 5; count *= 2; Console.WriteLine(count); } }