# Original Paxa practice: nonnegative decimal total, then integer item count.
total = float(input())
items = int(input())
if items >= 8:
    total = total * 0.8
print(f"Total credits: {total:.2f}")
