 Complete the following phrase:  When the Tang dynasty collapsed, China entered the Five Dynasties and Ten Kingdoms period, and as for the consequence of the repeated instability, the Vietnamese eventually 