Input: What is the total length of the river that flows through Slovenia , Croatia , along the northern border of Bosnia and Herzegovina , and through Serbia , discharging into the Danube in Belgrade ?
Output: 945