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:
Green Orange Orange
Pink Orange Orange
Pink Brown Brown

Output:
Green Orange Orange Green Orange Orange
Pink Orange Orange Green Brown Brown
Pink Brown Brown Pink Brown Brown


Example 2
Input:
Gray Brown Green Yellow
Orange Blue Green Green
Brown Blue Brown Gray
Pink Blue Pink Gray
Pink Orange Pink Pink
Purple Purple Pink Pink

Output:
Gray Brown Green Yellow Red Red Green Green
Orange Blue Green Green Green Brown Green Green
Brown Blue Brown Gray Green Black Green Yellow
Pink Blue Pink Gray Orange Black Orange Yellow
Pink Orange Pink Pink Brown Black Pink Pink
Purple Purple Pink Pink Yellow Orange Pink Gray


Example 3
Input:
Yellow Gray Pink
Yellow Yellow Pink
Red Orange Pink
Green Red Green
Red Pink Green

Output:
Yellow Gray Pink Purple Green Pink
Yellow Yellow Pink Pink Purple Pink
Red Orange Pink Purple Brown Green
Green Red Green Gray Gray Green
Red Pink Green Gray Yellow Green


Here is the input grid for the test example:
Input:
Gray Blue Orange
Brown Brown Blue
Brown Green Green
Brown Brown Green


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:

```
Gray Blue Orange Orange Orange Pink
Brown Brown Blue Orange Pink Pink
Brown Green Green Orange Orange Black
Brown Brown Green Yellow Black Brown
```
assistant