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

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


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

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


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

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


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


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