Group Trip to Haroumpia
Totos and Annoula are planning a trip to Haroumpia, where the currency is the hahanolira.
They have gathered some money and want to calculate how many hahanoliras they will be able to get in total.
They know that euro is equal to hahanoliras.
They also know that the exchange office can give them a maximum of hahanoliras.
Therefore, if their total sum in hahanoliras exceeds this limit, they can only get hahanoliras.
The input is Totos and Annoula's money in euros.
The output is the total amount of their money in hahanoliras.
Examples
1st
Input
50
30
Output
240
2nd
Input
200
100
Output
500
Explanation of the second example:
Totos has 200
euros and Annoula has 100
euros, so together they have euros.
This corresponds to chachanoliras.
However, is more than the limit of the exchange office, so they can only get 500
chachanoliras.
Comments