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