A field with perimeter 3996 m and integer sides is divided into 1998 parts having equal area (measured in m). Find the length of the field (in m), given that each part had an integer area.