#include int main(void){ int month[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int x,y,a,b,count=0; for(x=0;x<12;x++){ for(y=month[x];y>0;y--){ a=y/10; b=y%10; if((x+1)==a+b){ count++; } } } printf("%d\n",count); return 0; }