#include <iostream>
#include <string>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
void dump_ptree(const boost::property_tree::ptree &pt, std::string &&prefix = "")
{
for (auto &e : pt) {
std::cout << prefix << e.first << std::endl;
dump_ptree(e.second, prefix + "__");
}
}
int main()
{
boost::property_tree::ptree pt;
read_xml(std::cin, pt);
dump_ptree(pt);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8Ym9vc3QvcHJvcGVydHlfdHJlZS9wdHJlZS5ocHA+CiNpbmNsdWRlIDxib29zdC9wcm9wZXJ0eV90cmVlL3htbF9wYXJzZXIuaHBwPgoKdm9pZCBkdW1wX3B0cmVlKGNvbnN0IGJvb3N0Ojpwcm9wZXJ0eV90cmVlOjpwdHJlZSAmcHQsIHN0ZDo6c3RyaW5nICYmcHJlZml4ID0gIiIpCnsKICAgIGZvciAoYXV0byAmZSA6IHB0KSB7CiAgICAgICAgc3RkOjpjb3V0IDw8IHByZWZpeCA8PCBlLmZpcnN0IDw8IHN0ZDo6ZW5kbDsKICAgICAgICBkdW1wX3B0cmVlKGUuc2Vjb25kLCBwcmVmaXggKyAiX18iKTsKICAgIH0KfQoKaW50IG1haW4oKQp7CiAgICBib29zdDo6cHJvcGVydHlfdHJlZTo6cHRyZWUgcHQ7CiAgICByZWFkX3htbChzdGQ6OmNpbiwgcHQpOwogICAgZHVtcF9wdHJlZShwdCk7Cn0K