#include <iostream>
#include <string>
using namespace std;

namespace Player {
    const string ITEM[] = { "無し", "薬草", "乾パン", "干し肉" };
    string name;
    int life;
    int itm[3];
    void status();
}

void Player::status()
{
    cout << "名前 " << name << endl;
    cout << "体力 " << life << endl;
    for (int i = 0; i < 3; i++) cout << ITEM[itm[i]] << ",";
}

int main()
{
    Player::name = "ランスロット";
    Player::life = 10000;
    Player::itm[0] = 1;
    Player::itm[1] = 2;
    Player::itm[2] = 3;
    Player::status();
}