belgrade consists of two boroughs , buda and pest , which are situated on opposite sides of the river and crossed by a series of locks .
Budapest consists of two principal parts that were merged in 1873.