#include<iostream>
#include<iomanip>

using std::cout ;
using std::endl ;
using std::cin ;


int main()
{

int years = 0;
int counter = 0;
int month = 0;
float average = 0;
int sum = 0 ;

const char *  months[] = 
{"Dummy","January","February","March","April","May","June",
"July","August","September","October","November","December"};


cout << "Please enter the # of years." << endl;
cin >> years ;

for(int j=1; j<=years; ++j)
{   
  for(int i=1 ; i<=12; ++i)
  {
  cout<< "Please enter the rainfall for year number " << j  << " and month " << months[i] << " : " ;
  cin>>month ;
  sum = sum + month ;
  counter = counter + 1 ;
  }
}

average = (float) sum / counter ;


cout << "the total number of months was " << counter << ".\n";
cout << "The total inches of rainfall was " << sum << ".\n";
cout << "The average rainfall was " << average << ".\n";

  return 0;
}
