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

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


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

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


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

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


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