#include <iostream>
using namespace std;
long long n, i, d, p=1, nr, suma, cif;
int main()
{
cout << "n= "; cin >> n;
cout << "pare <=n : ";
for (i=0; i<=n; i+=2)
cout << i << " ";
cout << endl;
for (d=2; d*d<=n; ++d)
{
if (n%d==0)
{ p=p*d; p=p*(n/d); }
}
cout << "produsul divizorilor= " << p << endl;
while (n>0)
{
cif=n%10; ++nr;
suma=suma+cif;
n=n/10;
}
cout << "media cifrelor= " << 1.0*suma/nr;
}