using System; public class No311 { public static void Main() { int f = int.Parse(Console.ReadLine()); int count = 0; for(var i = 1; i < f+1; i++ ){ count = ( i % 3 == 0 ) ? count+=2 : count; count = ( i % 5 == 0 ) ? count+=2 : count; } Console.WriteLine(count); } }