      SUBROUTINE script (OAP,M,N,MD,ND)
      IMPLICIT REAL*8(A-H,O-Z)
      DIMENSION OAP(MD,ND)
      nnn=10
      NN=N/nnn
      IF(NN.EQ.0) GOTO 85
      DO 83 KK=1,NN
      N1=nnn*(KK-1)+1
      N2=nnn*KK
      IF(N2.LT.N1) RETURN
      WRITE(6,1023)
      WRITE(6,1024) (I,I=N1,N2)
      WRITE(6,1022)
      DO 83 JJ=1,M
83    WRITE(6,1025) JJ,(OAP(JJ,II),II=N1,N2)
      WRITE(6,1022)
85    N1=nnn*NN+1
      N2=N
      IF(N2.LT.N1) RETURN
      WRITE(6,1023)
      WRITE(6,1024) (I,I=N1,N2)
      WRITE(6,1022)
      DO 84 JJ=1,M
84    WRITE(6,1025) JJ,(OAP(JJ,II),II=N1,N2)
      WRITE(6,1022)
1022  FORMAT(/)
1023  FORMAT(/)
1024  FORMAT(/,1X,10(6X,I2))
1025  FORMAT(3X,I2,10F8.4)
      RETURN
      END
