min=a(1,1)
max=a(1,n)
FOR i=1 TO n
IF a(i,i)<min THEN min=a(i,i)
IF a(i,n-i+1)>max THEN max=a(i,n-i+1)
NEXT
PRINT min
PRINT max
min=a(1,1)
max=a(1,n)
FOR i=1 TO n
IF a(i,i)<min THEN min=a(i,i)
IF a(i,n-i+1)>max THEN max=a(i,n-i+1)
NEXT
PRINT min
PRINT max