using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace No188_2 { class Program { static void Main(string[] args) { var result = Enumerable.Range(0, 370) .Select(i => new DateTime(2015, 1, 1).AddDays(i)) .TakeWhile(date => date.Year == 2015) .Count(date => date.Month == date.Day.ToString("00").ToArray().Select(s => s.ToString()).Select(int.Parse).Sum()); Console.WriteLine(result); } } }