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

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


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

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


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

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


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

```
Pink Orange Gray Gray
Red Orange Pink Orange
Orange Gray Pink Gray
Pink Orange Pink Yellow
```
assistant