#include <iostream>
#include <string>
using namespace std;
const int 体力上限 = 50;
class ねずみ {
  string 名前;
  string 種族;
  int 体力;
  ねずみ(string name) : 体力(10) { 名前 = name; };
  void 自己紹介(){ cout << "名前:" << 名前 << endl; };
  void 体力を上げる(){ 体力++; if(体力 > 体力上限) 体力 = 体力上限; };
  void 体力を下げる(){ 体力--; if(体力 < 0) 体力 = 0; };
  int 体力の値を返す(){ return 体力; };
}
class 働きねずみ : public ねずみ {
  string 職業;
  働きねずみ() { 職業 = "ディズニーキャラクター"; };
  void 自己紹介(){
    cout << "名前:" << 名前 << endl;
    cout << "職業:" << 職業 << endl; };
  void 踊る(){ if(体力 >= 5) { cout << "踊りました" << endl; 体力 -= 5; }
    else { cout << "最後まで踊れません。体力がありません" << endl; 体力 = 0; } };
}
int main(){
働きねずみ a("ちゅー^2");
  a.自己紹介();
  a.体力を上げる();
  cout << "現在の体力" << a.体力の値を返す() << endl;
  a.体力を下げる();
  while(体力の値を返す() > 0) a.踊る();
働きねずみ b[2] = {"ミッキー", "ミニー"};
}