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:
Black Brown Brown Black Black
Black Purple Black Black Black
Red Black Purple Gray Purple
Black Pink Black Black Black
Green Black Red Orange Pink

Output:
Black Brown Brown Black Black
Black Purple Black Black Black
Red Black Purple Gray Purple
Black Gray Black Black Black
Green Black Red Orange Gray


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

Output:
Gray Orange Purple Black Brown
Brown Black Red Gray Blue
Black Purple Black Black Gray
Black Black Brown Black Black
Black Black Black Black Gray


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

Output:
Purple Gray Gray Green Gray
Green Black Black Blue Black
Blue Brown Blue Red Red
Blue Black Black Gray Red
Blue Black Black Black Black


Here is the input grid for the test example:
Input:
Green Green Orange Black Black
Orange Orange Gray Green Pink
Black Black Blue Brown Black
Gray Yellow Black Black Black
Black Black Blue Black 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:

```
Green Green Orange Black Black
Orange Orange Gray Green Gray
Black Black Blue Brown Black
Gray Blue Black Black Black
Black Black Blue Black Purple
```
assistant