{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries (maybe except for Luxembourg). To enforce that Germany will fulfill the criteria, our government has so many wonderful options (raise taxes, sell stocks, revalue the gold reserves,...) that it is really hard to choose what to do. \r\u003cbr\u003e\r\u003cbr\u003eTherefore the German government requires a program for the following task: \r\u003cbr\u003eTwo politicians each enter their proposal of what to do. The computer then outputs the longest common subsequence of words that occurs in both proposals. As you can see, this is a totally fair compromise (after all, a common sequence of words is something what both people have in mind). \r\u003cbr\u003e\r\u003cbr\u003eYour country needs this program, so your job is to write it for us."}},{"title":"Input","value":{"format":"HTML","content":"The input will contain several test cases. \r\u003cbr\u003eEach test case consists of two texts. Each text is given as a sequence of lower-case words, separated by whitespace, but with no punctuation. Words will be less than 30 characters long. Both texts will contain less than 100 words and will be terminated by a line containing a single \u0027#\u0027. \r\u003cbr\u003eInput is terminated by end of file. "}},{"title":"Output","value":{"format":"HTML","content":"For each test case, print the longest common subsequence of words occuring in the two texts. If there is more than one such sequence, any one is acceptable. Separate the words by one blank. After the last word, output a newline character."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003edie einkommen der landwirte\r\nsind fuer die abgeordneten ein buch mit sieben siegeln\r\num dem abzuhelfen\r\nmuessen dringend alle subventionsgesetze verbessert werden\r\n#\r\ndie steuern auf vermoegen und einkommen\r\nsollten nach meinung der abgeordneten\r\nnachdruecklich erhoben werden\r\ndazu muessen die kontrollbefugnisse der finanzbehoerden\r\ndringend verbessert werden\r\n#\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003edie einkommen der abgeordneten muessen dringend verbessert werden\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}