using System; using System.Collections.Generic; using System.Linq; public class Program{ public static void Main(){ var n = long.Parse(Console.ReadLine()); Console.WriteLine((n/3)*2+(n/5)*2); } }