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