#include <iostream>
#include <fstream>
class character {
public:
std::string name;
int hp;
int dmg;
void info() {
std::cout << name << " " << hp << " " << dmg << "\n";
}
};
int main()
{
std::ifstream fin("input.txt");
character hero;
std::string attr;
if (fin.is_open()) {
fin >> attr >> hero.name;
fin >> attr >> hero.hp;
fin >> attr >> hero.dmg;
hero.info();
fin.close();
}
return 0;
}
heroname hero
herohp 100
herodmg 15