#include int main(){ int day[] = {0, 31, 28, 31, 30, 31, 30, 31 , 31, 30, 31, 30, 31}; int count = 0; int m,d; for(m = 1; m <= 12; m++){ for(d = 1; d <= day[m]; d++ ){ if(m == (d%10 + (d/10)%10) ) count++; } } printf("%d\n",count); return 0; }