Add spaces: WespentfivedaysinRome,fivedaysinPesaroontheAdriaticcoastandfourdaysinVenice.
We spent five days in Rome, five days in Pesaro on the Adriatic coast and four days in Venice.