#include <iostream>
#include <string>
using namespace std;
int main(void)
{

//Declaring	
int min=0,max=0,sumo=0,sume=0,n,j=0,totalnum=0,ne=0,no=0;


//Creating a cout statement so the user can input the number of integers the program will compile
cout << "How many integers do you want to enter > "; 
cin >> totalnum;

if (totalnum<=0)//This is to verify that a positive integer was entered
{
	cout <<"Please enter a number at least greater than 1 ";
	cin>>  totalnum;
}
else
{
	do
	{
		cout << "Enter integer #"<< j << " ";
		cin >> n;
		if(j==0)
		{
			min=max=n;
			j+1;
		}
		else
		{
			if(n>max)
			{
				max=n;
			}
			if(n<min) 
			{
				min=n;
			}
		}

		if(n%2==0)
		{
			sume+=n;
			ne++;
		}
		else
		{
			sumo+=n;
			no++;
		}
	}while(j++<totalnum);
}
cout << "Max is " << max << "\n";
cout << "Min is " << min << "\n";
cout << "Number of odds is " << no << "\n";
cout << "Number of evens is " << ne << "\n";
cout << "Sum of odds is " << sumo << "\n";
cout << "Sum of evens is " << sume << "\n";
cout << "Integer average is " << (sume +sumo)/totalnum << "\n";
return 0;
}