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:
Gray Pink Red Blue
Red Blue Yellow Blue
Blue Gray Pink Gray
Red Green Brown Brown

Output:
Pink Orange Green Red Green Yellow Blue Blue
Green Red Gray Red Red Pink Orange Pink
Red Pink Orange Pink Green Red Gray Red
Green Yellow Blue Blue Pink Orange Green Red


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

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


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

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


Here is the input grid for the test example:
Input:
Blue Gray Pink
Orange Pink Purple
Blue Red 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:

```
Red Pink Orange Red Green Brown
Purple Orange Brown Purple Orange Brown
Red Green Brown Red Pink Orange
```
assistant