this is content
var x = 1111;
var x = 1111;
The first line of the input is an integer T (T<=15) representing the number of test cases.
Each test case is a specific output format (Length less than or equal 10000) in front.
Then input is an integer N (0<=N<=30) representing the number of the type of HTML document.
Each type is the structure of HTML document in front.
Then input is an integer M (0<=M<=30) representing the number of the mapping from the structure to the specific output format. Each of the next M lines is a mapping.
Each test case is a HTML document (Length less than or equal 10000) at the end.
For each test case, first output a line “Case #x:”, where x is the case number (starting from 1). If there exists the structure of the HTML doument, output specific format text, otherwise output “Can't Identify”. If there exists more than one structure of the HTML doument, use the early input structure.
2
<news>
<title>default title</title>
<content width="1000px"></content>
</news>
1
<html><h3 id="header"></h3>
<div id="content"></div></html>
2
header-title
content-content
<html><h3 id="header" class="style1">
this is a test</h3>
<div id="content" class="style2">
this is content<br/>
<pre>var x = 1111;</pre>
</div>
</html>
<xxx>
<title>default title</title>
</xxx>
1
<html><h3 id="header"></h3></html>
1
header-title
<html><h3 id="tmp">xxxx</h3></html>
Case #1:
<news>
<title>
this is a test</title>
<content width="1000px">
this is content<br/>
<pre>var x = 1111;</pre>
</content>
</news>
Case #2:
Can't Identify