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

Output:
Red Orange Green Black Purple Orange Purple Pink
Pink Pink Red Pink Red Orange Red Red
Gray Black Orange Pink Green Orange Green Brown
Pink Purple Pink Black Brown Pink Brown Red
Orange Black Gray Pink Purple Red Red Pink
Orange Pink Gray Green Brown Gray Purple Brown


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

Output:
Orange Orange Gray Pink Red Red
Brown Green Green Pink Green Red
Red Pink Purple Gray Red Red
Purple Orange Orange Purple Gray Pink
Brown Red Orange Purple Black Purple
Red Black Green Pink Brown Purple
Pink Green Red Green Red Gray


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

Output:
Gray Red Black Red Black Brown Red
Black Gray Orange Brown Purple Green Purple
Green Green Gray Orange Brown Brown Pink
Orange Red Red Purple Red Pink Black
Brown Brown Red Orange Green Pink Red
Red Pink Orange Gray Pink Black Gray
Black Purple Green Green Green Brown Red


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


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 Purple Green Red Pink
Purple Pink Gray Gray Gray
Black Gray Black Gray Purple
Purple Black Purple Red Gray
Gray Brown Black Red Gray
```
assistant