Prompt:
Below are some examples. The examples consist of input-output pairs.
For each input-output pair, the output is the correct output to be generated for that input.

<example>
Input:
1 1 1
6 6 6
6 1 6
----------------------
1 1 1 1 1 1
1 1 1 1 1 1
6 6 6 6 6 6
6 6 6 6 6 6
6 6 1 1 6 6
6 6 1 1 6 6
</example>

<example>
Input:
4 4 7
8 7 7
8 8 4
----------------------
4 4 4 4 4 4 7 7 7
4 4 4 4 4 4 7 7 7
4 4 4 4 4 4 7 7 7
8 8 8 7 7 7 7 7 7
8 8 8 7 7 7 7 7 7
8 8 8 7 7 7 7 7 7
8 8 8 8 8 8 4 4 4
8 8 8 8 8 8 4 4 4
8 8 8 8 8 8 4 4 4
</example>

<example>
Input:
4 2 8
2 2 5
8 5 4
----------------------
4 4 4 4 2 2 2 2 8 8 8 8
4 4 4 4 2 2 2 2 8 8 8 8
4 4 4 4 2 2 2 2 8 8 8 8
4 4 4 4 2 2 2 2 8 8 8 8
2 2 2 2 2 2 2 2 5 5 5 5
2 2 2 2 2 2 2 2 5 5 5 5
2 2 2 2 2 2 2 2 5 5 5 5
2 2 2 2 2 2 2 2 5 5 5 5
8 8 8 8 5 5 5 5 4 4 4 4
8 8 8 8 5 5 5 5 4 4 4 4
8 8 8 8 5 5 5 5 4 4 4 4
8 8 8 8 5 5 5 5 4 4 4 4
</example>

<example>
Input:
8 8 8
8 8 8
8 8 8
----------------------
8 8 8
8 8 8
8 8 8
</example>

<example>
Input:
3 3 3
3 3 3
3 3 3
----------------------
3 3 3
3 3 3
3 3 3
</example>

<example>
Input:
3 6 6
3 6 6
3 3 3
----------------------
3 3 6 6 6 6
3 3 6 6 6 6
3 3 6 6 6 6
3 3 6 6 6 6
3 3 3 3 3 3
3 3 3 3 3 3
</example>

<example>
Input:
2 2 4
4 4 4
2 4 2
----------------------
2 2 2 2 4 4
2 2 2 2 4 4
4 4 4 4 4 4
4 4 4 4 4 4
2 2 4 4 2 2
2 2 4 4 2 2
</example>

Please generate the output for the input below.
Please wrap the exact string for your answer between <output> and </output> tags.

Input:
7 1 7
3 3 6
8 8 6


Prompt:
Below are some examples. The examples consist of input-output pairs.
For each input-output pair, the output is the correct output to be generated for that input.

<example>
Input:
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 0 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
----------------------
9 9 0
9 9 9
9 9 9
</example>

<example>
Input:
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 0 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 0 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
----------------------
0 8 8
8 0 8
8 8 8
</example>

<example>
Input:
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 0 7 7 7 7 7 7 7 0 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 0 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
----------------------
0 7 0
0 7 7
7 7 7
</example>

Please generate the output for the input below.
Please wrap the exact string for your answer between <output> and </output> tags.

Input:
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 0 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 0 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6