#include<string>
#include<iostream>
using namespace std;

class Node
{
public:
	int count;
	string word;
	Node *left;
	Node *right;

	Node():count(0),left(NULL),right(NULL)
	{
	}
	
	Node(string word)
	{
      this->word=word;
      count = 1;
		right=NULL;
		left=NULL;
	}

	void Print()
	{
		cout.width(15);
		cout << word << " "  ;
		cout.width(5);
		cout << count << endl;
	}
};

