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

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


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

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


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

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


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


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:

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