# Neurotoads Python RPG — занятие 39
# Классы: Hero

class Hero:
    def __init__(self,name,hp):
        self.name=name; self.hp=hp
hero1=Hero("Лея",10)
hero2=Hero("Рин",7)
hero1.hp=max(0,hero1.hp-3)
print(hero1.name,hero1.hp)
print(hero2.name,hero2.hp)
