using System; public class Hello{ public static void Main(){ long n = long.Parse(Console.ReadLine()); long cnt = 0; cnt += (n / 15) * 4; cnt += (n / 5 - n / 15) * 2; cnt += (n / 3 - n / 15) * 2; Console.WriteLine(cnt); } }