#include <iostream>
using namespace std;
int main()
{
int n, i, Z [15], ma=0,p=1;
cin>>n;
for ( i=0; i<=n; i++ ) // citirea
cin >> Z [i];
for ( i=1; i<=n; i=i+2 ) // asa se parcurg din 2 in 2
ma = ma + Z[i];
p = p * Z[i];
cout << "Media este"<<" "<< ma/n;
cout<<"Produsul este"<<" "<<p;
return 0; }