Determined array N and M