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

Output:
Purple Orange Pink Gray Pink Orange Purple
Yellow Pink Brown Gray Brown Pink Yellow
Purple Black Pink Gray Pink Black Purple
Orange Brown Green Gray Green Brown Orange
Green Orange Orange Gray Orange Orange Green


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

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


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

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


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


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 Black Black Pink
Green Pink Pink Green
Brown Black Black Brown
Brown Blue Blue Brown
```
assistant