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


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

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


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

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


Here is the input grid for the test example:
Input:
Red Orange Orange Yellow Yellow
Blue Orange Orange Yellow Yellow
Blue Gray Blue Orange Orange
Orange Green Gray Orange Orange
Yellow Orange Blue Blue 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:

```
Red Blue Blue Orange Yellow
Orange Orange Gray Green Orange
Orange Orange Blue Gray Blue
Yellow Yellow Orange Orange Blue
Yellow Yellow Orange Orange Red
```
assistant