using System; using System.Collections.Generic; using System.Linq; public class yukicoder { public static void Main() { long n = long.Parse(Console.ReadLine()); long zcount = 0; for (long i = 1; i <= n; i++) { if (i % 3 == 0 && i % 5 == 0) { zcount = zcount + 4; } else if (i % 3 == 0 || i % 5 == 0) { zcount = zcount + 2; } } Console.WriteLine(zcount); } }