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:
0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 8 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0
0 8 0 0 0 0 0 8 0 0 0 0 0 0 0 0 6 0 0 0 6 0 0
0 8 0 0 0 0 0 8 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 6 0 0 0 0 4 4 4 4 4 4 4 0 0
0 0 0 6 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 4 0 0
0 0 0 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 4 0 0
0 6 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 4 0 0
0 0 0 0 0 6 0 0 0 0 0 0 0 0 4 0 0 0 0 0 4 0 0
0 0 0 0 0 0 0 0 0 0 3 0 0 0 4 0 0 0 0 0 4 0 0
0 6 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 4 0 0
0 0 0 0 0 3 0 0 0 0 6 0 0 0 4 4 4 4 4 4 4 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 3 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 6 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 8 3 0 3 0 3 8 0 0 0 0 0 0 0 0 0 0 0 0 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0 0 0 0 0 0 0 0 0
0 0 0 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 8 2 0 2 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1 1 1 1 1 5 0 5 0 0 0 0 0 0 0 5 0 0 0
5 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 5 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 1 0 5 0 0 4 0 0 0 0 4 0 0 0 0
0 5 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 5 0
0 0 0 1 0 0 0 0 0 0 0 1 0 0 4 0 0 0 0 0 0 5 0 0 0 0
4 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 4 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 4 0
0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 5 0 0 0 0 0 0 0 3 3 3 3 3 3 3 3 3 3 3 0 0 0 0
5 0 2 2 2 2 0 0 4 0 0 3 0 0 0 0 0 0 0 0 0 3 0 5 0 0
0 0 2 0 0 2 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0 0
0 0 2 0 0 2 0 0 0 0 5 3 0 0 0 0 0 0 0 0 0 3 0 0 4 0
0 0 2 2 2 2 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0 0
0 4 0 0 0 5 0 5 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 3 3 3 3 3 3 3 3 3 3 3 0 0 0 5
0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 5 0 0 0 0 0 0
0 5 0 0 0 0 0 0 0 0 5 0 0 5 0 0 0 0 0 0 0 0 0 4 0 0
0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0
0 0 0 0 0 8 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 5 0 0 0 0


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:
0 0 0 8 0 0 0 0 6 0 0
3 3 3 8 3 3 3 3 6 3 3
0 0 0 8 0 0 0 0 6 0 0
0 0 0 8 0 0 0 0 6 0 0
0 0 0 8 0 0 0 0 6 0 0
0 0 0 8 0 0 0 0 6 0 0
5 5 5 8 5 5 5 5 6 5 5
0 0 0 8 0 0 0 0 6 0 0
0 0 0 8 0 0 0 0 6 0 0
0 0 0 8 0 0 0 0 6 0 0
----------------------
0 8 0 6 0
3 8 3 6 3
0 8 0 6 0
5 8 5 6 5
0 8 0 6 0
</example>

<example>
Input:
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
2 2 1 2 2 8 2 3 2 2 2
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
5 5 1 5 5 8 5 3 5 5 5
0 0 1 0 0 8 0 3 0 0 0
0 0 1 0 0 8 0 3 0 0 0
----------------------
0 1 0 8 0 3 0
2 1 2 8 2 3 2
0 1 0 8 0 3 0
5 1 5 8 5 3 5
0 1 0 8 0 3 0
</example>

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

<example>
Input:
0 0 3 0 0 0 0 1 0 0 0
7 7 3 7 7 7 7 1 7 7 7
0 0 3 0 0 0 0 1 0 0 0
0 0 3 0 0 0 0 1 0 0 0
0 0 3 0 0 0 0 1 0 0 0
0 0 3 0 0 0 0 1 0 0 0
2 2 2 2 2 2 2 1 2 2 2
0 0 3 0 0 0 0 1 0 0 0
0 0 3 0 0 0 0 1 0 0 0
0 0 3 0 0 0 0 1 0 0 0
8 8 8 8 8 8 8 8 8 8 8
0 0 3 0 0 0 0 1 0 0 0
----------------------
0 3 0 1 0
7 3 7 1 7
0 3 0 1 0
2 2 2 1 2
0 3 0 1 0
8 8 8 8 8
0 3 0 1 0
</example>

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

Input:
0 0 3 0 0 2 0 7 0 0 4 0 0
0 0 3 0 0 2 0 7 0 0 4 0 0
0 0 3 0 0 2 0 7 0 0 4 0 0
6 6 6 6 6 2 6 7 6 6 4 6 6
0 0 3 0 0 2 0 7 0 0 4 0 0
0 0 3 0 0 2 0 7 0 0 4 0 0
1 1 1 1 1 2 1 7 1 1 4 1 1
0 0 3 0 0 2 0 7 0 0 4 0 0
0 0 3 0 0 2 0 7 0 0 4 0 0
8 8 8 8 8 8 8 7 8 8 4 8 8
0 0 3 0 0 2 0 7 0 0 4 0 0
0 0 3 0 0 2 0 7 0 0 4 0 0


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:
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
1 1 2 1 1 1 8 1 1 1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 0 0 0
0 0 1 0 0 0 8 0 0 0
0 0 1 0 0 0 1 0 0 0
0 0 1 0 0 0 1 0 0 0
1 1 2 1 1 1 8 1 1 1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
1 1 1 2 1 1 1
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0
0 0 0 2 0 0 0
0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 1 0 0 0
1 1 1 2 1 1 1
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
</example>

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

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

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

Input:
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
1 2 1 8 1 1 1 8 1 2 1
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0
0 0 0 0 2
0 0 0 2 0
0 0 2 0 2
0 2 2 2 2
0 0 0 0 2
0 0 2 2 0
0 0 0 0 2
0 0 0 2 2
0 0 0 0 0
----------------------
0 0 0 0 0 8 8 8 8 8
0 0 0 0 2 0 8 8 8 8
0 0 0 2 0 8 0 8 8 8
0 0 2 0 2 0 8 0 8 8
0 2 2 2 2 0 0 0 0 8
0 0 0 0 2 0 8 8 8 8
0 0 2 2 0 8 0 0 8 8
0 0 0 0 2 0 8 8 8 8
0 0 0 2 2 0 0 8 8 8
0 0 0 0 0 8 8 8 8 8
</example>

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

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

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

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

Input:
0 0 0 0 0 0
0 0 0 0 0 2
0 0 0 0 2 0
0 0 0 2 2 2
0 0 0 0 2 2
0 2 2 2 0 0
0 0 0 2 2 2
0 0 0 0 0 2
0 0 0 0 2 2
0 0 0 0 2 2
0 0 0 0 0 0
0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0
0 0 0 0 8 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0
0 0 0 8 8 0 2 0 0 0 0 8 8 0 0 0 0 0 0 0 0 0
0 0 0 8 0 0 2 2 0 0 0 0 8 0 0 0 0 8 8 8 0 0
0 0 0 8 8 0 2 0 0 0 0 8 8 0 0 8 8 8 0 8 8 8
0 0 0 0 8 0 0 0 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0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 8 8 8 0 0 0 0 0 0 0 0
0 0 8 8 8 8 0 8 8 8 8 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 8 0 0 0 0 0
0 0 8 0 2 0 2 0 2 0 8 0 0 0 0 0
0 0 8 0 0 2 2 2 0 0 8 0 0 0 0 0
0 0 8 0 2 0 2 0 2 0 8 0 0 0 0 0
0 0 8 0 2 0 2 0 2 0 8 0 0 0 0 0
0 0 8 0 0 2 2 2 0 0 8 0 0 0 0 0
0 0 8 0 2 0 2 0 2 0 8 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 8 0 0 0 0 0
0 0 8 8 8 8 0 8 8 8 8 0 0 0 0 0
0 0 0 0 0 8 8 8 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 8 8 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 8 8 8 0 8 8 8 8
0 0 0 8 8 8 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0 0
0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 8 8 8 8 8 0 8 8 8 8 8 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 8 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 8 0 0 0 0 0 5 0 0 0 0 0
8 8 8 8 8 8 8 8 8 8 2 8 8 8 8 8
0 0 0 0 8 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 8 0 0 0 0 0 5 0 0 0 0 0
0 0 0 0 8 0 0 0 0 0 5 0 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 4 4 4 4 4 2 4 4 4 4
0 0 0 4 0 0 0 0 0 3 0 0 0 0
0 0 0 4 0 0 0 0 0 3 0 0 0 0
0 0 0 4 0 0 0 0 0 3 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 3 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 5 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 7 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
3 3 2 3 3 3 3 2 3 3 3 3 3
0 0 5 0 0 0 0 7 0 0 0 3 0
5 5 5 5 5 5 5 2 5 5 5 2 5
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
0 0 5 0 0 0 0 7 0 0 0 3 0
7 7 2 7 7 7 7 7 7 7 7 2 7
0 0 5 0 0 0 0 7 0 0 0 3 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 8 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 4 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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 5 1 5 5 2 5 5 5 1
0 0 0 5 0 0 0 5 0 0
0 0 0 5 0 0 0 2 0 0
0 0 0 5 0 0 0 5 0 0
5 2 5 5 5 5 5 5 2 5
0 0 0 5 0 0 0 5 0 0
0 0 0 1 0 0 0 5 0 0
0 0 0 5 0 0 0 5 0 0
0 0 0 5 0 0 0 5 0 0
5 2 5 5 5 5 1 5 5 2
----------------------
1 5 1 5 5 2 5 5 5 1
1 1 1 5 2 2 2 5 2 2
1 1 1 5 2 2 2 2 2 2
1 1 1 5 2 2 2 5 2 2
5 2 5 5 5 5 5 5 2 5
2 2 2 5 1 1 1 5 2 2
2 2 2 1 1 1 1 5 2 2
2 2 2 5 1 1 1 5 2 2
2 2 2 5 1 1 1 5 2 2
5 2 5 5 5 5 1 5 5 2
</example>

<example>
Input:
2 5 5 5 1 5 5 5 5 2
0 0 5 0 0 0 0 5 0 0
0 0 1 0 0 0 0 1 0 0
0 0 5 0 0 0 0 5 0 0
0 0 5 0 0 0 0 5 0 0
5 1 5 5 5 2 5 5 5 1
0 0 5 0 0 0 0 5 0 0
0 0 5 0 0 0 0 2 0 0
0 0 5 0 0 0 0 5 0 0
1 5 5 5 2 5 5 5 5 1
----------------------
2 5 5 5 1 5 5 5 5 2
1 1 5 1 1 1 1 5 1 1
1 1 1 1 1 1 1 1 1 1
1 1 5 1 1 1 1 5 1 1
1 1 5 1 1 1 1 5 1 1
5 1 5 5 5 2 5 5 5 1
1 1 5 2 2 2 2 5 1 1
1 1 5 2 2 2 2 2 1 1
1 1 5 2 2 2 2 5 1 1
1 5 5 5 2 5 5 5 5 1
</example>

<example>
Input:
1 5 2 5 2 5 5 5 5 1
0 0 0 5 0 0 2 0 0 0
0 0 0 5 0 0 5 0 0 0
5 2 5 5 5 1 5 5 2 5
0 0 0 5 0 0 2 0 0 0
0 0 0 1 0 0 5 0 0 0
2 2 5 5 1 5 5 5 1 5
0 0 0 5 0 0 1 0 0 0
0 0 0 5 0 0 5 0 0 0
5 5 1 5 5 1 5 5 2 5
----------------------
1 5 2 5 2 5 5 5 5 1
2 2 2 5 2 2 2 2 2 2
2 2 2 5 2 2 5 2 2 2
5 2 5 5 5 1 5 5 2 5
2 2 2 5 1 1 2 2 2 2
2 2 2 1 1 1 5 2 2 2
2 2 5 5 1 5 5 5 1 5
2 2 2 5 1 1 1 1 1 1
2 2 2 5 1 1 5 1 1 1
5 5 1 5 5 1 5 5 2 5
</example>

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

Input:
5 1 5 5 5 5 5 5 1 5
0 0 5 0 0 5 0 0 0 0
0 0 5 0 0 1 0 0 0 0
5 5 5 5 1 5 5 2 1 5
0 0 2 0 0 2 0 0 0 0
0 0 5 0 0 5 0 0 0 0
2 5 5 5 2 5 5 1 2 5
0 0 1 0 0 2 0 0 0 0
0 0 5 0 0 5 0 0 0 0
5 2 5 5 5 5 1 5 5 1


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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0
0 0 0 0 0 0 0 6 0 0 0 0 0 0 4 0 0 0
</example>

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

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 3 8 3 0 0 0 0 0 3 0 0 0 0 0
0 0 0 0 0 0 3 0 0 0 0 0 3 4 3 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 3 0 0 0 0 0 3 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 3 1 3 0 0 0
0 0 0 3 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0
0 0 3 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 1 1 1 1 1 0
0 1 0 1 0 1 0
0 1 0 1 0 1 0
0 1 0 1 0 1 0
0 1 0 1 0 1 0
0 1 1 1 1 1 0
0 0 0 0 0 0 0
----------------------
0 1 1 1 1 1 0
0 1 0 1 0 1 0
0 1 0 1 0 1 0
0 2 0 2 0 2 0
0 2 0 2 0 2 0
0 2 2 2 2 2 0
0 0 0 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 1 1 1 1 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 1 0 0 1 0 0 0 0
0 2 0 0 2 0 0 0 0
0 2 0 0 2 0 0 0 0
0 2 2 2 2 0 0 0 0
</example>

<example>
Input:
0 0 0 1 0 0 0 0 0
0 1 1 1 1 1 0 0 0
0 0 1 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0
0 1 1 1 1 1 0 0 0
0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0
----------------------
0 0 0 1 0 0 0 0 0
0 1 1 1 1 1 0 0 0
0 0 1 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0
0 0 2 0 2 0 0 0 0
0 0 2 0 2 0 0 0 0
0 2 2 2 2 2 0 0 0
0 0 0 2 0 0 0 0 0
0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0
0 0 0 1 0 0 0 0 1 0 0
1 1 1 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 1 0 0
0 0 0 0 1 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 3 0 0 0 0 0 0 0 0
0 0 2 0 3 4 0 0 0 0 0 0 0
0 0 2 1 1 0 0 0 0 0 0 0 0
0 0 2 0 0 4 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 0 0 0 0 0
0 0 8 8 8 8 8 8 0 0 0 0 0
0 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 2 0 4 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 0 0 0 0 0
0 8 8 8 8 8 8 0 0 0 0 0
0 8 8 8 8 8 8 0 0 0 0 0
0 0 0 0 8 8 8 8 8 8 0 0
0 0 0 0 8 8 8 8 8 8 0 0
0 0 0 0 8 8 8 8 8 8 0 0
0 8 8 8 0 0 0 8 8 8 0 0
0 8 8 8 0 0 0 8 8 8 0 0
0 8 8 8 0 0 0 8 8 8 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 3 1 0 0 0 0 0 0
0 0 0 4 3 0 0 0 0 0 0 0
0 0 0 2 0 4 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 2 2 2 4 4 4 0 0 0 0 0
0 2 2 2 4 4 4 0 0 0 0 0
0 2 2 2 4 4 4 0 0 0 0 0
0 0 0 0 3 3 3 3 3 3 0 0
0 0 0 0 3 3 3 3 3 3 0 0
0 0 0 0 3 3 3 3 3 3 0 0
0 4 4 4 0 0 0 1 1 1 0 0
0 4 4 4 0 0 0 1 1 1 0 0
0 4 4 4 0 0 0 1 1 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0
0 0 0 0 0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 4 2 0 0
0 0 0 0 0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 3 0 2 0 0
0 0 0 0 0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
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 2 2 2 0 0 0 8 8 8 8 8
8 8 0 2 2 0 0 0 8 8 8 8 8
8 8 2 0 2 0 0 0 8 8 8 8 8
8 8 0 0 0 0 0 0 8 8 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 2 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 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 8 8 8
8 8 8 0 4 0 0 4 0 0 4 0 0 4 0 0 4 0 8 8 8
8 8 8 4 0 4 4 0 4 4 0 4 4 0 4 4 0 4 8 8 8
8 8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 8 8 8
8 8 8 0 4 0 0 4 0 0 4 0 0 4 0 0 4 0 8 8 8
8 8 8 4 0 4 4 0 4 4 0 4 4 0 4 4 0 4 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
</example>

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

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 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 1 0 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 1 0 1 8 8 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 1 1 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 8 8 8
8 8 8 0 0 0 0 0 0 8 8 8 8 4 0 0 0 0 0 8 8 8
8 8 8 8 8 8 8 8 8 8 8 8 8 4 4 0 0 0 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 0 0 0 0 0 0 0 0 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 0 0 0 0 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 0 0 0 0 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 3 0 3 3 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 0 3 0 3 8 8 8 8 8 8 8 8 8 8 8
8 8 8 0 0 0 0 3 3 0 3 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


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 2 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 4 4 4 4 4 0 0 0 0 0 0 0 0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8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 4 4 1 4 0 0 0 0 0 0 0 0 0 0 4 4 4 4 4 0 0 0 0 0 0
0 0 0 0 4 4 4 4 0 0 0 0 0 0 0 0 0 0 4 3 4 4 4 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4 4 3 4 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4 4 4 4 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 4 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 4 4 4 6 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 4 6 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 4 4 4 4 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 6 4 6 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 4 4 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0
0 8 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0
0 8 0 4 4 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2 0 0 0 0 1 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 0
0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 1 0
0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0
0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0
0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0
0 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 0 0 0 0
0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0
0 0 4 0 0 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 0 4 0 0 0 0 0
0 0 4 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 4 0 0 0 0 0
0 0 4 0 0 3 0 0 0 0 8 8 8 8 8 8 8 8 8 0 3 0 4 0 0 0 0 0
0 0 4 0 0 3 0 0 0 0 8 0 0 0 0 0 0 0 8 0 3 0 4 0 0 0 0 0
0 0 4 0 0 3 0 0 0 0 8 0 1 1 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0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 2 5 0 0 2 0 5 0 0 0
2 0 0 0 5 0 2 0 0 5 0 0 0
0 0 0 0 2 0 2 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
2 5 5 5 5 5 5 5 2 5 5 5 5
0 2 0 0 5 0 2 0 0 5 0 0 0
0 0 2 0 5 0 0 2 0 5 0 2 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
5 5 5 5 5 5 5 5 5 5 2 5 5
0 0 0 0 5 0 0 0 0 5 0 0 0
0 2 0 0 5 0 2 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 2
0 0 0 0 5 0 0 0 0 5 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 2 0 0
----------------------
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
5 5 5 5 2 5 5 5 5 2 5 5 5
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
0 0 0 0 5 0 0 0 0 5 0 0 0
5 5 5 5 2 5 5 5 5 2 5 5 5
0 0 0 0 5 0 0 0 0 5 0 0 0
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0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4 5 5 5 4
0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5 0 0 0 5
</example>

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

Input:
0 0 0 0 0 5 0 1 0 0 0 1 0 0 0 0 1 5 0 0 1 0 0 5 1 0 0
0 0 0 0 0 1 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0
1 0 0 0 1 5 1 0 0 0 0 5 0 0 0 0 0 5 0 1 0 0 0 1 1 1 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 1 0 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 1
5 5 5 5 5 5 5 5 5 5 5 1 1 1 5 5 5 5 5 5 1 5 5 1 5 5 5
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 1 0 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 1 0 1 0 0 5 0 0 1
0 0 0 0 0 1 1 0 1 0 0 5 0 1 0 0 0 5 0 0 0 0 0 5 0 1 0
0 0 0 1 0 5 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5 0 1 0
5 5 1 5 5 5 5 5 5 5 5 5 5 5 5 1 5 5 5 5 5 1 5 5 5 5 5
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 0 0 0 1 0 0 1 0 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 1 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 1 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 1 0 0 5 0 0 0 0 0 5 1 0 1 0 0 5 0 0 0
1 5 5 5 5 5 5 5 1 5 5 5 1 5 5 5 5 1 1 5 5 5 5 5 1 5 5
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 1 0 5 0 0 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 0 0 0 1 0 1 0 0 0 5 0 0 0 0 0 5 0 0 1
0 0 0 0 0 5 0 0 0 0 0 1 0 0 0 0 0 5 0 1 0 0 0 5 0 0 0
0 0 0 0 0 5 0 0 0 0 0 5 0 0 0 0 0 5 0 0 1 0 0 5 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0
0 0 8 7 7 7 7 7 7 7 7 8 0 2 2 2 2 2 2
0 0 8 7 7 7 7 7 7 7 7 8 0 2 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 8 1 4 2 0 0 0 0 0 0
0 2 4 1 1 1 1 1 1 1 1 4 2 0 0 0 0 0 0
0 2 4 4 4 4 4 4 4 4 4 4 2 0 0 0 0 0 0
0 2 2 2 2 2 2 2 2 2 2 2 2 0 0 0 0 0 0
----------------------
0 0 0 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0
0 0 0 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0
0 0 0 8 8 6 6 6 6 6 8 8 0 0 0 0 0 0 0
0 0 0 8 8 6 1 1 1 6 8 8 0 0 0 0 0 0 0
0 0 0 8 8 6 6 6 6 6 8 8 0 0 0 0 0 0 0
0 0 0 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0
0 0 0 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 8 8 8 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0
0 8 1 1 1 1 1 1 1 1 1 1 8 0 0 0 0 0 0
0 8 1 4 4 4 4 4 4 4 4 1 8 0 0 0 0 0 0
0 8 1 4 2 2 2 2 2 2 4 1 8 0 0 0 0 0 0
0 8 1 4 2 2 2 2 2 2 4 1 8 0 0 0 0 0 0
0 8 1 4 4 4 4 4 4 4 4 1 8 0 0 0 0 0 0
0 8 1 1 1 1 1 1 1 1 1 1 8 0 0 0 0 0 0
0 8 8 8 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 3 3 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0
0 3 3 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0
0 3 3 6 6 6 6 6 6 3 3 0 0 0 0 0 0 0 0
0 3 3 6 1 1 1 1 6 3 3 0 0 5 5 5 5 5 5
0 3 3 6 1 4 4 1 6 3 3 0 0 5 4 4 4 4 5
0 3 3 6 1 1 1 1 6 3 3 0 0 5 4 8 8 4 5
0 3 3 6 6 6 6 6 6 3 3 0 0 5 4 8 8 4 5
0 3 3 3 3 3 3 3 3 3 3 0 0 5 4 4 4 4 5
0 3 3 3 3 3 3 3 3 3 3 0 0 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 6 6 6 6 6 6 6 6 6 6 6 6 6 0 0 0
0 0 0 6 8 8 8 8 8 8 8 8 8 8 8 6 0 0 0
0 0 0 6 8 2 2 2 2 2 2 2 2 2 8 6 0 0 0
0 0 0 6 8 2 4 4 4 4 4 4 4 2 8 6 0 0 0
0 0 0 6 8 2 4 3 3 3 3 3 4 2 8 6 0 0 0
0 0 0 6 8 2 4 4 4 4 4 4 4 2 8 6 0 0 0
0 0 0 6 8 2 2 2 2 2 2 2 2 2 8 6 0 0 0
0 0 0 6 8 8 8 8 8 8 8 8 8 8 8 6 0 0 0
0 0 0 6 6 6 6 6 6 6 6 6 6 6 6 6 0 0 0


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:
8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0
8 8 8 8 8 0 0 0 0 0 0 0 0 0 0 0
8 8 8 8 8 0 0 0 8 8 8 8 0 0 0 0
8 8 8 8 8 0 0 0 8 8 8 8 0 0 0 0
8 8 8 8 8 0 0 0 8 8 8 8 0 0 0 0
0 0 0 0 0 0 0 0 8 8 8 8 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 8 8 8 8 0 0 1 1 0 0 0
0 0 0 0 0 8 8 8 8 0 0 1 1 0 0 0
0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 0
0 0 0 0 0 8 8 8 8 0 0 0 0 0 0 0
0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 2 0 0 0 0 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1 1 1
0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1
0 0 0 0 1 1 1 1 0 0 0 1 1 1 1 1
1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0
1 1 0 0 1 1 1 1 0 2 2 2 0 0 0 0
0 0 0 0 1 1 1 1 0 2 2 2 0 0 0 0
0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0
----------------------
1 1 1 1 1
0 0 8 8 8
0 0 0 2 2
0 0 0 0 3
</example>

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

Input:
0 0 0 0 0 0 8 8 0 0 0 0 0 0 0 0
0 3 3 3 0 0 8 8 0 0 0 0 0 0 0 0
0 3 3 3 0 0 0 0 0 0 3 3 0 0 8 8
0 3 3 3 0 0 0 0 0 0 3 3 0 0 8 8
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 4 4 4 0 0 0 0 0 0 0 0 0
0 0 0 0 4 4 4 0 0 4 4 0 0 0 0 0
0 0 0 0 4 4 4 0 0 4 4 0 0 0 3 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3
0 0 0 0 0 4 4 4 0 0 0 0 0 0 0 0
0 0 0 0 0 4 4 4 0 0 0 0 0 0 0 0
0 3 3 0 0 4 4 4 0 3 3 3 3 0 0 0
0 3 3 0 0 0 0 0 0 3 3 3 3 0 0 0
0 0 0 0 4 4 0 0 0 3 3 3 3 0 0 0
0 0 0 0 4 4 0 0 0 3 3 3 3 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 6 6 6 6 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0
0 6 6 6 6 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0
0 6 6 6 6 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0
0 6 6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0 0 0 0 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 8 8 8 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 8 8 8 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 8 8 8 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 8 8 8 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0
0 0 3 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 2 2 2 2 2 0 8 8 8 8 0 0 0 0 0 0 0 0
0 2 2 8 8 8 8 8 8 8 8 8 0 0 0 0 0 0 0 0
0 2 2 2 2 2 2 0 8 8 8 8 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 8 8 8 8 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
0 0 0 3 3 3 3 3 3 3 3 0 0 0 1 1 1 1 1 0
0 0 0 3 3 3 3 3 3 3 3 0 0 0 1 1 1 1 1 0
0 0 0 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0
0 0 0 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0
0 0 0 3 3 3 3 3 3 3 7 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 7 7 7 7 7 7 0 0 0 0 0 0 0
0 0 0 0 0 0 0 7 7 7 7 7 7 0 0 0 0 0 0 0
0 0 0 0 0 0 0 7 7 7 7 7 7 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 0
0 1 1 1 1 0 0 1 1 1 0
0 1 1 1 1 0 0 1 1 1 0
0 1 1 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 0
0 1 2 2 1 0 0 1 2 1 0
0 1 2 2 1 0 0 1 1 1 0
0 1 1 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
0 0 1 2 2 2 1 0 0 0 0
0 0 1 2 3 2 1 0 0 0 0
0 0 1 2 3 2 1 0 0 0 0
0 0 1 2 2 2 1 0 0 0 0
0 0 1 1 1 1 1 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0 0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1 1 1 1 1 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 2 2 2 2 2 2 1 0 0 0 0
0 0 1 2 3 3 3 3 2 1 0 0 0 0
0 0 1 2 3 2 2 3 2 1 0 0 0 0
0 0 1 2 3 2 2 3 2 1 0 0 0 0
0 0 1 2 3 3 3 3 2 1 0 0 0 0
0 0 1 2 2 2 2 2 2 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 1 1 1 0 0 0
0 0 0 0 1 2 2 2 2 2 1 0 0 0
0 0 0 0 1 2 3 3 3 2 1 0 0 0
0 0 0 0 1 2 2 2 2 2 1 0 0 0
0 0 0 0 1 1 1 1 1 1 1 0 0 0
</example>

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

Input:
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 2 2 3 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 2 3 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 2 2 3 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 2 2 3 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 2 2 3 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 2 0 0 0 2 0 0 0 2 0 0
0 3 2 2 0 2 2 2 0 2 2 2 0
3 3 2 2 2 2 2 2 2 2 2 2 2
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 3 0 0 0 2 0 0 0 2 0 0
0 3 3 2 0 2 2 2 0 2 2 2 0
3 3 3 2 2 2 2 2 2 2 2 2 2
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 3 0 0 0 2 0 0 0 2 0 0
0 3 3 3 0 2 2 2 0 2 2 2 0
3 3 3 3 2 2 2 2 2 2 2 2 2
5 5 5 5 5 5 5 5 5 5 5 5 5
0 0 3 0 0 0 2 0 0 0 2 0 0
0 3 3 3 0 2 2 2 0 2 2 2 0
3 3 3 3 3 2 2 2 2 2 2 2 2


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:
7 6 7
2 7 6
1 2 7
----------------------
7 2 1 1 2 7 7 2 1
6 7 2 2 7 6 6 7 2
7 6 7 7 6 7 7 6 7
7 6 7 7 6 7 7 6 7
6 7 2 2 7 6 6 7 2
7 2 1 1 2 7 7 2 1
7 2 1 1 2 7 7 2 1
6 7 2 2 7 6 6 7 2
7 6 7 7 6 7 7 6 7
</example>

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

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

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

Input:
8 8 6
6 3 6
6 8 8


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:
2 2 1 0 2 2 2 0 1 2 1
1 2 2 0 2 2 2 0 1 1 2
2 2 2 0 1 2 2 0 2 1 2
0 0 0 0 0 0 0 0 0 0 0
2 2 1 0 2 1 2 0 2 2 2
1 2 2 0 1 2 1 0 2 2 2
2 1 2 0 2 2 1 0 2 2 2
0 0 0 0 0 0 0 0 0 0 0
2 1 1 0 1 1 1 0 1 1 1
1 2 1 0 1 1 1 0 2 1 1
1 2 1 0 1 2 1 0 1 1 2
----------------------
2 1 1 0 1 1 1 0 1 1 1
1 2 1 0 2 1 1 0 1 1 1
1 2 1 0 1 1 2 0 1 2 1
0 0 0 0 0 0 0 0 0 0 0
2 2 1 0 2 1 2 0 1 2 1
1 2 2 0 1 2 1 0 1 1 2
2 1 2 0 2 2 1 0 2 1 2
0 0 0 0 0 0 0 0 0 0 0
2 2 2 0 2 2 2 0 2 2 1
2 2 2 0 2 2 2 0 1 2 2
2 2 2 0 1 2 2 0 2 2 2
</example>

<example>
Input:
1 1 2 0 2 1 2 0 2 1 1
2 1 2 0 2 1 2 0 1 1 1
1 2 2 0 1 2 2 0 1 1 2
0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 1 1 1 0 2 2 2
2 1 1 0 1 1 1 0 2 1 2
1 2 2 0 1 2 1 0 2 2 2
0 0 0 0 0 0 0 0 0 0 0
1 2 2 0 1 2 1 0 1 1 1
2 2 1 0 2 1 1 0 1 1 1
2 2 2 0 1 2 1 0 1 1 1
----------------------
2 1 1 0 1 1 1 0 1 1 1
1 1 1 0 1 1 1 0 1 1 1
1 1 2 0 1 2 1 0 1 1 1
0 0 0 0 0 0 0 0 0 0 0
1 1 2 0 1 2 1 0 1 2 1
2 1 2 0 2 1 1 0 2 1 1
1 2 2 0 1 2 2 0 1 2 1
0 0 0 0 0 0 0 0 0 0 0
2 2 2 0 1 2 2 0 2 1 2
2 1 2 0 2 2 1 0 2 1 2
2 2 2 0 2 2 2 0 1 2 2
</example>

<example>
Input:
2 2 2 0 2 2 2 0 2 2 1
2 2 1 0 2 2 2 0 1 2 2
2 2 2 0 2 2 2 0 2 1 2
0 0 0 0 0 0 0 0 0 0 0
2 1 1 0 1 1 1 0 1 1 1
1 2 1 0 1 1 1 0 2 1 1
2 1 2 0 1 1 1 0 1 2 1
0 0 0 0 0 0 0 0 0 0 0
2 1 1 0 1 2 1 0 2 1 1
1 2 1 0 1 2 1 0 1 1 1
2 1 1 0 2 2 2 0 1 1 1
----------------------
1 1 1 0 2 1 1 0 1 1 1
2 1 1 0 1 1 1 0 1 1 1
1 2 1 0 1 1 1 0 1 1 1
0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 2 1 1 0 2 1 1
1 2 1 0 1 2 1 0 1 2 1
2 2 2 0 2 1 2 0 2 1 1
0 0 0 0 0 0 0 0 0 0 0
2 2 2 0 2 2 2 0 2 2 1
2 2 2 0 2 2 1 0 1 2 2
2 2 2 0 2 2 2 0 2 1 2
</example>

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

Input:
2 2 2 0 2 1 2 0 2 2 1
1 2 2 0 1 2 2 0 1 2 1
2 1 2 0 2 1 2 0 2 1 2
0 0 0 0 0 0 0 0 0 0 0
1 1 2 0 1 1 1 0 1 1 1
1 2 1 0 1 1 1 0 1 1 2
1 2 1 0 1 1 1 0 1 1 1
0 0 0 0 0 0 0 0 0 0 0
2 1 1 0 2 1 1 0 2 2 2
1 1 1 0 1 2 1 0 2 2 2
1 1 2 0 1 2 2 0 2 2 2


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:
0 5 0 0 0 0 0 0 0 5 0 0 0
0 5 0 0 0 5 5 0 0 0 0 0 0
5 0 0 0 0 0 0 5 0 0 0 5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0 2 0 5 5 2 5 0 0
0 5 5 2 0 0 0 2 0 2 2 2 5 5 0
</example>

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

Input:
0 0 0 5 0 5 0 0 0 0 0 5 5
0 0 0 0 0 5 0 5 0 5 5 5 0
0 0 0 0 0 0 5 0 0 0 0 0 0
5 0 5 0 0 0 5 5 0 0 0 0 5
0 0 5 5 0 5 0 0 0 0 0 0 5
0 0 0 0 0 0 0 0 5 0 5 0 0
0 0 5 5 0 5 0 5 0 0 0 0 0
5 0 0 0 0 5 5 0 5 0 0 0 0
0 5 0 0 0 0 0 0 0 5 5 0 0
0 5 0 5 0 0 0 5 0 5 0 5 0
0 5 0 0 0 0 0 0 0 5 5 0 0
5 0 5 0 5 0 5 0 0 0 0 0 0
0 0 0 2 0 0 0 2 0 2 5 5 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 8 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 0 0 0
0 0 3 3 0 0 0 0 0 0 0 0 0
0 0 3 0 3 0 0 0 0 0 0 0 0
0 0 3 0 0 3 0 0 0 0 0 0 0
0 0 0 3 0 0 3 0 0 0 0 0 0
0 0 0 0 3 0 0 3 0 0 0 0 0
0 0 0 0 0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0 0 0 0 0 0 0 0 8 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 3 3 3 3 3 3 3 3 8 0
0 0 0 3 0 0 0 0 0 0 0 3 0 0
0 0 8 3 3 3 3 3 3 3 3 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 8 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 8 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0
0 0 5 0 0 0 0 0 0 0 0
0 0 5 0 0 0 0 4 0 0 0
0 0 5 0 0 0 0 4 0 2 0
0 0 5 0 0 0 0 4 0 2 0
0 0 5 0 0 0 0 0 0 2 0
0 0 0 0 5 0 0 0 0 2 0
0 0 0 0 5 0 0 0 0 0 0
4 0 0 0 5 0 0 0 0 0 0
4 0 0 0 5 0 0 0 0 0 0
4 0 0 0 5 0 0 0 0 0 0
----------------------
2
2
2
2
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0 0 0
0 0 8 2 0 0 0 0 6 6 6 0
0 0 2 8 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 8 2 0 0
6 6 6 0 0 0 0 0 2 8 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 7 7 0 0 0 0 0 0
0 0 0 0 7 7 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
----------------------
7 7
7 7
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 6 6 6 0 0 0 0 0 0 0 0
0 0 0 6 0 0 0 0 2 2 2 0 0
0 0 0 0 0 0 0 0 2 3 2 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 2 1 2 0
0 0 0 0 0 0 0 0 0 1 1 1 0
0 2 2 2 0 0 0 0 0 0 0 0 0
0 2 3 2 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 6 6 6 0 0 0 0
0 0 0 0 0 0 0 6 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
----------------------
2 1 2
1 1 1
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 5 5 5 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 4 8 0 0 0 0
0 0 0 0 0 0 0 8 8 0 0 0 0
0 4 4 0 0 0 0 8 4 0 0 0 0
0 4 4 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 4 4 0 0 0 0 0 0 0 0 0
0 0 4 4 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 5 5 5 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0


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:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2 0 0 0 0 2 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2 0 0 0 0 2 0
0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2 0 0 0 0 2 0
----------------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2 0 0 0 0 2 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 0
0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0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0 0
0 2 0 0 0 0 2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
</example>

<example>
Input:
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 1 0 0
0 1 1 0 0 0 0 1 1 0
0 1 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0
0 1 1 0 0 0 0 1 1 0
0 1 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 1 1 0 0 1 1 0
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
----------------------
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 1 0 0
0 0 1 1 0 0 0 1 1 0
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 1 0 0
0 0 1 0 0 0 0 1 1 0
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1 1 0
0 0 1 1 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 2 0 0 0 0
</example>

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

Input:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0 0 1 1 0 0
0 0 0 1 1 0 0 0 0 1 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2
0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 0 1 1 0
0 0 0 0 1 1 0 0 0 0 0 0 0
0 0 0 0 1 1 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2
0 0 0 0 0 0 0 0 0 1 1 0 0
0 0 0 0 1 1 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 2 0 0 0 0 2