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

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


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

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


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

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


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


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:

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