 Complete the following phrase:  During the reign of Bolesław the Brave, relations between Poland and the Holy Roman Empire deteriorated, resulting in a series of wars 10021005, 10071013, 10151018. From 10031004 Bolesław intervened militarily in Czech dynastic conflicts. After his forces were removed from Bohemia in 1018, Bolesław retained Moravia. In 1013 the marriage between Bolesławs son Mieszko and Richeza of Lotharingia, the niece of Emperor Otto III and future mother of Casimir I the Restorer, took place. The conflicts with Germany ended in 1018 with the Peace of Bautzen accord, on favorable terms for Bolesław. In the context of the 1018 