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:
Brown Brown Brown Brown
Brown Purple Purple Brown
Brown Purple Purple Brown
Brown Brown Brown Brown

Output:
Pink Pink Pink Pink
Pink Gray Gray Pink
Pink Gray Gray Pink
Pink Pink Pink Pink


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

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


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

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


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


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 Purple Gray
Yellow Yellow Yellow
Orange Yellow Orange
```
assistant