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

Output:
Brown Pink Blue Purple
Pink Pink Blue Brown
Green Pink Pink Brown
Green Green Brown Green


Example 2
Input:
Green Green Purple Brown Yellow
Brown Green Blue Brown Pink
Green Brown Brown Brown Yellow

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


Example 3
Input:
Red Red Red
Purple Red Red
Gray Purple Purple
Gray Purple Purple

Output:
Gray Gray Purple Red
Purple Purple Red Red
Purple Purple Red Red


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


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:

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