#include <iostream>
using namespace std;
void solve(){
const int n = 14, m = 6;
int a[n][m];
for(int i = 0; i < n; i++){
int res = 0;
for(int j = 0; j < m; j++){
cin >> a[i][j];
res += a[i][j] < 0;
}
if(i == 0 || i % 2 == 1)
cout << "There are " << res << " negative elements in line " << i + 1 << "\n";
signed main(){
solve();
#include <iostream>
using namespace std;
void solve(){
const int n = 14, m = 6;
int a[n][m];
for(int i = 0; i < n; i++){
int res = 0;
for(int j = 0; j < m; j++){
cin >> a[i][j];
res += a[i][j] < 0;
}
if(i == 0 || i % 2 == 1)
cout << "There are " << res << " negative elements in line " << i + 1 << "\n";
}
}
signed main(){
solve();
}