#include <iostream>
#include <cmath>
#include <string>

using namespace std;

int main () {
    int age;
    int ageTotal = 0;
    int geometric_mean=1;
    
    int numberOfpeopleEntered = 0;
    
    cout << "Enter first persons age or -1 to quit "<<endl;
    cin>>age;
    
    while (age != -1){
        ageTotal = ageTotal + age;
        numberOfpeopleEntered++;
       
        cout<<"Enter next persons age or -1 to quit "<<endl;
        cin>>age;   
    }
    cout<<"Number of people entered: "<<numberOfpeopleEntered<<endl;
    cout<<"Average age:"<<ageTotal/ numberOfpeopleEntered<<endl;
    cout<<"Geometric mean: "<<pow(geometric_mean,.5)<<endl;
 return 0;
}