A family consists of members. You are given the task to book flight tickets for these members.
You are given the following information about the airline in which you have to book the tickets:
Determine the total cost to book the tickets for all the family members.
Note: The tickets are booked one by one for all the family members.
Input format
First line: Five space-separated integers and respectively
Output format
Print the total cost to book the tickets for all the members of the family.
Constraints
Monk books 5 tickets for price 6000 each and rest 2 for price 6500 each.
Total expenditure = 6000*5+6500*2 = 43000