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

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


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

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


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

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


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


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:

```
Blue Yellow Yellow Purple Red Yellow
Yellow Brown Red Gray Gray Red
Brown Brown Red Red Red Purple
Pink Red Pink Red Red Yellow
Yellow Pink Pink Red Red Yellow
Yellow Yellow Pink Red Yellow Red
```
assistant