using System; namespace CSharp { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var n = Int64.Parse(input); var x = ((n / 3) + (n / 5)) * 2; Console.WriteLine(x); } } }