Who returned towns and seaports to Russia?