3565 FOR M=1 TO 3