题目描述
Problem Description
Takahashi is creating a bowling game. In the game, it is necessary to display the pins that have been knocked down, but simply listing the pin numbers does not look very good.
Therefore, Takahashi decided to graphically display the pins knocked down in the first throw and the second throw. First, the pin numbers are assigned as follows. Note that the 10th pin is represented by 0.
```
7 8 9 0
4 5 6
2 3
1
For each position of these numbers, the following display is made:
- If the pin is knocked down in the first throw, it is displayed as `.`.
- If the pin is knocked down in the second throw, it is displayed as `o`.
- If the pin is not knocked down by the second throw, it is displayed as `x`.
For example, if 3 pins numbered 1, 3, and 5 are knocked down in the first throw, and 2 pins numbered 7 and 0 are knocked down in the second throw, the display will be as follows:
```
o x x o
x . x
x .
.
Given the information about the pins knocked down in the first and second throws, output the display as described above.
Input Format
The input is given from the standard input in the following format:
$ a $ $ b $ $ p_1 $ $ p_2 $ ... $ p_a $ $ q_1 $ $ q_2 $ ... $ q_b $
- The first line contains the integer $a\ (0\ ≦\ a\ ≦\ 10)$ representing the number of pins knocked down in the first throw, and the integer $b\ (0\ ≦\ b\ ≦\ 10)$ representing the number of pins knocked down in the second throw, separated by a space.
- The second line contains $ a $ integers separated by spaces, representing the numbers of the pins knocked down in the first throw. The $i\ (1\ ≦\ i\ ≦\ a)$th integer $ p_i $ represents the $ i $th pin knocked down. It is guaranteed that $p_i\ ≠\ p_j$ for $i\ ≠\ j$.
- The third line contains $ b $ integers separated by spaces, representing the numbers of the pins knocked down in the second throw. The $i\ (1\ ≦\ i\ ≦\ b)$th integer $ q_i $ represents the $ i $th pin knocked down. It is guaranteed that $q_i\ ≠\ q_j$ for $i\ ≠\ j$.
- It is guaranteed that $p_i\ ≠\ q_j$ for any $i,\ j$.
Output Format
Output the information about the knocked-down pins according to the problem statement. Include a newline at the end of the output. Note that it is acceptable to output some spaces after the last . , o , or x on each line.
Sample Input and Output
Sample Input #1
3 2
1 3 5
7 0
Sample Output #1
o x x o
x . x
x .
.
Sample Input #2
10 0
7 3 4 5 1 2 6 0 9 8
Sample Output #2
. . . .
. . .
. .
.
Sample Input #3
0 10
7 3 4 5 1 2 6 0 9 8
Sample Output #3
o o o o
o o o
o o
o
Notes/Hints
Sample Explanation 1
This is the input explained in the problem statement.
Sample Explanation 2
In the case of a strike, there will be an empty line after the second line. Note that depending on the viewing environment, the empty line may contain half-width spaces, but in the actual input, the empty line does not contain half-width spaces.
Sample Explanation 3
Note that an empty line may occur in the input. Note that depending on the viewing environment, the empty line may contain half-width spaces, but in the actual input, the empty line does not contain half-width spaces.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分