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

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


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

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


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

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


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

```
Yellow Black Yellow
Pink Black Pink
Gray Brown Gray
```
assistant