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

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


Example 2
Input:
Red Red Red Red
Green Orange Orange Green
Green Purple Purple Green
Orange Yellow Yellow Orange

Output:
Red Red Red Red Red Red Red Red
Red Red Red Red Red Red Red Red
Green Green Green Orange Orange Orange Orange Green
Green Green Green Orange Orange Orange Orange Green
Green Green Green Purple Purple Purple Purple Green
Green Green Green Purple Purple Purple Purple Green
Orange Orange Orange Yellow Yellow Yellow Yellow Orange
Orange Orange Orange Yellow Yellow Yellow Yellow Orange


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

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


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


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 Blue Blue Blue Blue Brown Brown Blue
Blue Blue Blue Blue Blue Brown Brown Blue
Blue Brown Brown Yellow Yellow Yellow Yellow Blue
Blue Brown Brown Yellow Yellow Yellow Yellow Blue
Brown Blue Blue Yellow Yellow Yellow Yellow Brown
Brown Blue Blue Yellow Yellow Yellow Yellow Brown
Blue Blue Blue Brown Brown Blue Blue Blue
Blue Blue Blue Brown Brown Blue Blue Blue
```
assistant