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

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


Example 2
Input:
Brown Brown Purple Purple Orange Orange
Brown Brown Purple Purple Brown Gray
Orange Orange Blue Blue Brown Brown
Orange Orange Blue Blue Brown Brown
Yellow Yellow Pink Pink Gray Gray
Yellow Yellow Pink Pink Gray Gray

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


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

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


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

```
Orange Blue Orange Orange Gray Purple
Orange Blue Orange Orange Yellow Purple
Red Red Orange Orange Orange Orange
Orange Blue Orange Orange Orange Orange
Orange Orange Red Red Orange Orange
Orange Orange Orange Blue Orange Orange
```
assistant