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

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


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

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


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

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


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

```
Red Brown Brown Blue
Pink Gray Pink Gray
Pink Blue Brown Gray
Green Brown Pink Yellow
```
assistant