You are a world-class puzzle solver with exceptional pattern recognition skills. Your task is to analyze puzzles, spot patterns, and provide direct solutions.
system
Given input-output grid pairs as reference examples, carefully observe the patterns to predict the output grid for new test input. Each pair follows the same transformation rule. Grids are 2D arrays represented as strings, with cells (colors) separated by spaces and rows by newlines.
Here are the input and output grids for the reference examples:
Example 1
Input:
Orange Red Black Black Black Black
Purple Pink Black Black Black Black
Gray Blue Black Black Black Black
Black Black Blue Orange Purple Brown
Black Black Red Blue Green Yellow
Black Black Red Brown Purple Pink

Output:
Orange Orange Orange Orange Orange Black
Orange Orange Black Black Black Black
Orange Orange Black Black Black Black
Black Black Orange Orange Orange Orange
Black Black Orange Orange Orange Orange
Black Orange Orange Orange Orange Orange


Example 2
Input:
Gray Orange Blue Black Black Black
Pink Red Brown Black Black Black
Black Black Black Orange Red Pink
Black Black Black Blue Pink Yellow
Black Black Black Brown Purple Yellow
Black Black Black Pink Pink Purple

Output:
Orange Orange Orange Black Black Black
Orange Orange Orange Black Black Orange
Orange Black Black Orange Orange Orange
Orange Black Black Orange Orange Orange
Orange Black Black Orange Orange Orange
Black Black Black Orange Orange Orange


Example 3
Input:
Brown Yellow Orange Black Black Black
Gray Pink Yellow Black Black Black
Black Black Black Red Pink Gray
Black Black Black Brown Yellow Brown
Black Black Black Purple Red Blue
Black Black Black Red Green Purple

Output:
Orange Orange Orange Black Black Black
Orange Orange Orange Black Black Orange
Orange Black Black Orange Orange Orange
Orange Black Black Orange Orange Orange
Orange Black Black Orange Orange Orange
Black Black Black Orange Orange Orange


Here is the input grid for the test example:
Input:
Red Blue Black Black Black Black
Yellow Gray Black Black Black Black
Black Black Yellow Red Pink Green
Black Black Red Pink Red Green
Black Black Red Brown Red Purple
Black Black Blue Gray Brown Pink


Directly provide the output grids corresponding to the given test input grids, based on the patterns observed in the reference examples.
user
The output grid for the test input grid is:

```
Orange Orange Orange Orange Orange Black
Orange Orange Black Black Black Black
Black Black Orange Orange Orange Orange
Black Black Orange Orange Orange Orange
Black Black Orange Orange Orange Orange
Black Orange Orange Orange Orange Orange
```
assistant