Ahmed, the mighty leader of the anti-gang gang AC, is also the owner of a major franchise that sells clothing! As the 2nd in command of Calvin's gang CA (rival gang of AC), you come up with a sneaky idea to put them out of business: buying out their entire T-shirt stock and monopolizing the T-shirt industry! All that's left is to calculate how much money you need to ask your Boss for in order to execute your scheme. AC T-shirts come in 3 sizes — small, medium and large. You can purchase small T-shirts for
Input Specification
Line 1: Three integers space separated:
Line 2: Prices,
Output Specification
A single real number on one line, the amount of money asked in the problem statement, rounded to two decimal places in the format
Note: neither input nor output should have leading zeroes, 5 dollars should be expressed as 5.00
, not 05.00
.
Constraints
Sample Input
3 2 1
1.00 2.00 3.00
Sample Output
7.00
Comments