#include <iostream>
#include <sstream>
#include <string>
#include <map>

	
int main() {
	std::map<std::string,std::string> dictionary;
	std::istream& in = std::cin;
	
	std::string line;
	while(getline(in, line)) { // Read whole lines first ...
	    std::istringstream iss(line); // Create an input stream to read your values
	    std::string english; // Have variables to receive the input
	    std::string french;  // ...
	    if(iss >> english >> french) { // Read the input delimted by whitespace chars
	        dictionary[english] = french; // Put the entry into the dictionary.
		                                  // NOTE: This overwrites existing values 
		                                  // for `english` key, if these were seen
		                                  // before.
		}
		else {
		   // Error ...
		}
	}
		
	for(std::map<std::string,std::string>::iterator it = dictionary.begin();
	    it != dictionary.end();
		++it) {
		std::cout << it->first << " = " << it->second << std::endl;
	}	
		
	return 0;
}