#include<stdio.h>
int main()
{
int n,m;
int array[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf("%d", &array
[i
][j
]); }
}
int odd=0,even=0,positive=0,negative=0;
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(array[i][j] % 2 == 0) even++;
else odd++;
if(array[i][j] >= 0) positive++;
else negative++;
}
}
printf("Positive: %d\n", positive
); printf("Negative: %d\n", negative
); }
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKQp7CiAgICBpbnQgbixtOwogICAgc2NhbmYoIiVkICVkIiwgJm4sICZtKTsKICAgIGludCBhcnJheVtuXVttXTsKCiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqPG07IGorKyl7CiAgICAgICAgICAgIHNjYW5mKCIlZCIsICZhcnJheVtpXVtqXSk7CiAgICAgICAgfQogICAgfQogICAgaW50IG9kZD0wLGV2ZW49MCxwb3NpdGl2ZT0wLG5lZ2F0aXZlPTA7CiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqPG07IGorKyl7CiAgICAgICAgICAgIGlmKGFycmF5W2ldW2pdICUgMiA9PSAwKSBldmVuKys7CiAgICAgICAgICAgIGVsc2Ugb2RkKys7CgogICAgICAgICAgICBpZihhcnJheVtpXVtqXSA+PSAwKSBwb3NpdGl2ZSsrOwogICAgICAgICAgICBlbHNlIG5lZ2F0aXZlKys7CiAgICAgICAgfQogICAgfQogICAgcHJpbnRmKCJFdmVuOiAlZFxuIiwgZXZlbik7CiAgICBwcmludGYoIk9kZCA6ICVkXG4iLCBvZGQpOwogICAgcHJpbnRmKCJQb3NpdGl2ZTogJWRcbiIsIHBvc2l0aXZlKTsKICAgIHByaW50ZigiTmVnYXRpdmU6ICVkXG4iLCBuZWdhdGl2ZSk7Cn0KCg==