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:
Brown Black Brown Brown Green Black Green Brown Black Brown Brown
Brown Brown Brown Brown Green Green Green Brown Black Black Brown
Brown Brown Brown Brown Green Green Green Brown Brown Brown Brown
Brown Black Brown Brown Green Green Green Brown Black Brown Brown
Brown Brown Brown Brown Green Green Green Black Brown Brown Brown
Brown Brown Black Brown Green Green Green Brown Brown Black Brown
Black Brown Brown Brown Green Green Green Brown Black Brown Brown
Brown Brown Brown Brown Green Green Green Black Black Brown Brown
Black Brown Black Brown Green Green Green Brown Brown Brown Brown
Brown Brown Black Black Green Green Green Brown Black Brown Black
Brown Brown Brown Black Green Green Green Brown Brown Brown Brown
Brown Black Black Brown Green Green Green Brown Brown Brown Brown
Brown Black Black Black Black Green Brown Brown Brown Brown Brown

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


Example 2
Input:
Black Brown Black Brown Brown Green Brown Green Brown Black Brown Black Black
Black Brown Brown Brown Brown Green Green Green Black Brown Brown Brown Black
Black Brown Brown Brown Brown Green Green Green Black Brown Brown Black Brown
Brown Black Black Black Black Green Green Green Brown Brown Brown Brown Brown
Brown Brown Black Brown Black Green Green Green Black Brown Brown Brown Brown
Brown Brown Black Brown Black Green Green Green Brown Brown Brown Brown Brown
Brown Black Brown Brown Brown Green Green Green Brown Brown Brown Black Brown
Brown Brown Brown Brown Black Green Green Green Brown Black Brown Black Brown
Black Brown Brown Black Brown Green Green Green Brown Black Brown Black Black
Brown Brown Brown Black Brown Brown Green Brown Black Brown Brown Black Black

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


Example 3
Input:
Pink Pink Black Pink Pink Pink Green Black Green Pink Pink Black Pink Pink
Black Pink Pink Pink Black Pink Green Green Green Black Pink Pink Pink Black
Pink Pink Pink Pink Black Pink Green Green Green Pink Pink Pink Pink Pink
Pink Black Pink Pink Pink Pink Green Green Green Pink Pink Pink Black Pink
Pink Pink Pink Pink Black Black Green Green Green Black Pink Pink Black Black
Pink Pink Black Pink Pink Pink Green Green Green Pink Black Black Black Pink
Black Pink Pink Pink Black Pink Green Green Green Black Pink Black Pink Black
Pink Pink Pink Black Pink Pink Green Green Green Pink Black Pink Pink Pink
Black Black Pink Black Pink Pink Green Green Green Black Pink Pink Black Pink
Pink Pink Pink Pink Pink Black Pink Green Black Pink Pink Pink Pink Pink

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


Here is the input grid for the test example:
Input:
Purple Purple Black Black Purple Green Purple Green Purple Black Purple Purple
Purple Black Black Black Purple Green Green Green Purple Purple Black Purple
Black Purple Black Purple Purple Green Green Green Purple Purple Purple Purple
Purple Purple Purple Purple Black Green Green Green Purple Purple Purple Purple
Purple Purple Purple Purple Black Green Green Green Black Purple Black Black
Purple Purple Black Purple Black Green Green Green Black Purple Purple Purple
Purple Black Purple Purple Purple Green Green Green Purple Purple Black Purple
Purple Purple Purple Black Black Green Green Green Purple Purple Purple Purple
Purple Black Black Black Purple Green Green Green Purple Purple Purple Black
Black Purple Purple Black Black Green Green Green Purple Purple Purple Purple
Black Black Black Purple Purple Green Green Green Purple Purple Purple Purple
Black Purple Purple Purple Black Purple Green Purple Black Purple Purple Purple


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:

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