pens_count = int(input())
markers_count = int(input())
liter_cleaner = float(input())
discount_percentage = int(input())

pens_price = pens_count * 5.80
markers_price = markers_count * 7.20
cleaner_price = liter_cleaner * 1.20

total_sum = pens_price + markers_price + cleaner_price
total_sum -= total_sum * (discount_percentage / 100)
print(f"{total_sum:.3f}")
af81e23007c81d6083795c5e5d7f14087a965031
<mask token>

<mask token>
total_sum -= total_sum * (discount_percentage / 100)
print(f'{total_sum:.3f}')

pens_count = int(input())
markers_count = int(input())
liter_cleaner = float(input())
discount_percentage = int(input())
pens_price = pens_count * 5.8
markers_price = markers_count * 7.2
cleaner_price = liter_cleaner * 1.2
total_sum = pens_price + markers_price + cleaner_price
total_sum -= total_sum * (discount_percentage / 100)
print(f'{total_sum:.3f}')

pens_count = int(input())
markers_count = int(input())
liter_cleaner = float(input())
discount_percentage = int(input())

pens_price = pens_count * 5.80
markers_price = markers_count * 7.20
cleaner_price = liter_cleaner * 1.20

total_sum = pens_price + markers_price + cleaner_price
total_sum -= total_sum * (discount_percentage / 100)
print(f"{total_sum:.3f}")