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


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

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


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

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


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

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