// Marvyn De La Torre    CS1A    Chapter 3, P.143, #4

/*************************************************************
// Calculate Average Rainfall
//
// This program displays the average rainfall for three months.
//
// Input:
// Names of three months
// Rainfall amounts for three months
//
// Output:
// Average rainfall for the three months
*************************************************************/

#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

int main()
{
    string month1;
    string month2;
    string month3;
    double rain1;
    double rain2;
    double rain3;
    double average;

    cin >> month1;
    cin >> rain1;
    cin >> month2;
    cin >> rain2;
    cin >> month3;
    cin >> rain3;

    average = (rain1 + rain2 + rain3) / 3;

    cout << fixed << showpoint << setprecision(2);
    cout << "The average rainfall for " << month1 << ", "
         << month2 << ", and " << month3 << " is "
         << average << " inches.";

    return 0;
}