numOfDogs = int(input('Enter the number of the dogs: '))
numOfOtherAnimals = int(input('Enter the number of the other animals: '))
sumForDogsFood = numOfDogs * 2.5
sumForOtherAnimalsFoor = numOfOtherAnimals * 4
sumForEverything = sumForDogsFood + sumForOtherAnimalsFoor
print(f'{sumForEverything:.2f} lv.')