using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
var value = Enumerable.Range(1,999).Where(x=>x % 3 == 0 || x % 5 == 0).Sum();
Console.WriteLine(value);
}