Properties of nuclei far from the stability line in the relativistic hartree theory