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

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


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

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


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

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


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

```
Gray Yellow Yellow
Blue Yellow Brown
Blue Pink Gray
```
assistant