using System; class S21_happydays{ public static void Main(string[] args){ int[] days = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int count = 0; for(int m = 1; m <= 12; m++){ for(int d = 1; d <= days[m]; d++){ if(m == (d%10 + (d/10)%10 )) count++; } } Console.WriteLine("{0}",count); } }