Host galaxies of high-redshift extremely red and obscured quasars