The first line contains three integers A, B and G: the number of players on team A, the number of players on team B, and the number of goals scored in the match.
The second line contains the A names of the players on team A, separated by spaces.
The third line contains the B names of the players on team B, separated by spaces.
The fourth line contains the G names of the players who scored, separated by spaces. If G is 0, this line is empty.
1≤A≤20, 1≤B≤20, 0≤G≤100. Each name is made of lowercase latin letters and is at most 20 characters long. The A+B names are all different, and every player who scored appears on one of the two rosters.