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