#include
#include
#include
#pragma GCC optimize("Ofast")
#define ll long long
#define ld long double
using namespace std;
signed main() {
const ll n = 3, m = 4;
ll cnt = 0, sum = 0;
ll a[n][m];
for(ll i = 0; i < n; i++)
for(ll j = 0; j < m;j++){
cin >> a[i][j];
if(a[i][j] > 0)
cnt++;
if(i == j)
sum += a[i][j];
}
cout << "Amount of positive elements is: " << cnt << "\n";</strong>
cout << "Sum of elements on the main diagonal is: " << sum;</strong>
}