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

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


Example 2
Input:
Blue Blue Gray Gray Yellow Yellow
Blue Blue Gray Gray Yellow Yellow
Yellow Yellow Black Black Gray Gray
Yellow Yellow Black Black Gray Gray
Yellow Yellow Orange Orange Purple Purple
Yellow Yellow Orange Orange Purple Purple

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


Example 3
Input:
Gray Gray Brown Brown Yellow Yellow
Gray Gray Brown Brown Yellow Yellow
Blue Blue Black Black Gray Gray
Blue Blue Black Black Gray Gray
Yellow Yellow Purple Purple Pink Pink
Yellow Yellow Purple Purple Pink Pink

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


Here is the input grid for the test example:
Input:
Green Green Pink Pink Yellow Yellow
Green Green Pink Pink Yellow Yellow
Orange Orange Black Black Pink Pink
Orange Orange Black Black Pink Pink
Pink Pink Pink Pink Orange Orange
Pink Pink Pink Pink Orange Orange


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:

```
Green Green Pink Pink Yellow Yellow
Green Green Pink Pink Yellow Yellow
Orange Orange Red Red Pink Pink
Orange Orange Red Red Pink Pink
Pink Pink Pink Pink Orange Orange
Pink Pink Pink Pink Orange Orange
```
assistant