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

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


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

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


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

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


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

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