#include <stdio.h>
#define MONTHS 12
int main() 
{
    int days[MONTHS]={31,28,31,32,45,56,67,76,45,34,49,90};
    int index;
    int sum=0;
    for(index=0;index<MONTHS;index++)
    {
        printf("Month %2d has %d days.\n",index+1,*(days+index));
       // sum+=*(days+index);
       sum+=days[index];
    }
   printf("%d",sum);
    
	return 0;
}