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

Output:
Brown Gray Orange Brown Brown
Brown Purple Orange Purple Gray
Orange Orange Pink Orange Orange
Gray Purple Orange Purple Brown
Brown Brown Orange Gray Brown


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

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


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

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


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

```
Pink Pink Pink Pink
Yellow Purple Purple Yellow
Orange Orange Orange Orange
Green Green Green Green
```
assistant