/** @file list0301.cpp */
/** Listing 3-1. Integer Arithmetic */
/// Read the program and determine what the program does.

#include <iostream>
#include <ostream>

int main()
{
    int sum(0);
    int count(0);
    int x;
    while (std::cin >> x)
    {
        sum = sum + x;
        count = count + 1;
    }

    std::cout << "average = " << sum / count << '\n';
}
