#include <iostream> using namespace std; int main() { int n, a, sum = 0; cin >> n; for(int i = 0; i < n * n; i++){ cin >> a; if(a > 0){ sum += a; } } cout << sum; return 0; }
5 89 76 54 32 33 46 57 89 40 32 12 45 63 78 65 13 76 54 89 67 13 67 89 90 43