neljätuhatta
Both components are inflected; see neljä and tuhat. The only exception is that the nominative singular has the tuhat word in partitive as tuhatta.