Given two cities and their distances, calculate the total distance
Berlin to Munich, 284 km; Munich to Dresden, 294 km
The total distance between Berlin to Munich and Munich to Dresden is 578 km.
Complete the following task based on the instruction and optional input provided.### Instruction:
Given two cities and their distances, calculate the total distance

### Input:
Berlin to Munich, 284 km; Munich to Dresden, 294 km

### Output:
The total distance between Berlin to Munich and Munich to Dresden is 578 km.