program mn;

uses crt;
var a:array[1..100,1..100]of integer;
n,z,m,i,j,pol,otr,k:integer;
BEGIN
ClrScr;
Write('N:');
readln(n);
randomize;
for i:=n downto 1 do
for j:=n downto 1 do
a[i,j]:=random(40)-15;
for i:=1 to n do
begin
for j:=1 to n do
write(a[i,j],' ');
writeln;
end;
for j:=1 to n do
begin
pol:=0;
otr:=0;
for i:=1 to n do
begin
if a[i,j]>0
then inc(pol)
else if a[i,j]<0
then inc(otr);
end;
if (otr=pol)and(k=0)
then begin
writeln('est');
k:=1;
end;
end;
if k=0
then writeln('net');
readln;
END.