#include "XmlFile.h"
#include <iostream>

using namespace std;

int main(void) {
   XmlFile xmlfile;
   xmlfile.read(cin);

   xmlfile.printElementList(cout);

   return 0;
}