int m,n,i,j,suma = 0,contor = 0;
int m[20][20];
//Citire
cin >> n >> m;
for (i=1;i<=n;i++)
for (j=1;j<=m;j++)
cin >> m[i][j]
//Calculare suma
for ( i=1;i<=m;i++){
if (m[3][i] %2==0) suma += m[3][i];
//Numarare valori
for (i=1;i<=n;i++)
if ( a[1][i] < 10 ) contor++;
//Afisare rezultat
cout << suma;
cout << contor;