//This program used to categorize the number of people
//in each age group

//fathi mohamed fathi rezq bekhit
#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> people;
	int col;
	do
	{
	cout<<"Please enter an age from one to 100, put -99 to stop\n";
	cin>>col;
	people.push_back(col);
	
	}
	while(col!=-99);
	

	for (int count2=1;count2<=100;count2++)
	{
		
		int numpeople=0;
		for(int count=0;count<people.size();count++)	{
			
		if (people[count]==count2)
		{
		numpeople++;
			
		}
		if (people[count]==-99)	{
			
	     if (numpeople!=0)
		{
			cout<<"number of people "<<count2<<" years old is "
			<<numpeople<<endl;
		}
	                            }
			
		
		}
	}
}
	
	

