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

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


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

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


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

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


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

```
Orange Orange Yellow Yellow Yellow
Yellow Yellow Orange Pink Yellow
Yellow Pink Pink Blue Blue
Pink Pink Green Purple Green
Yellow Green Green Purple Purple
```
assistant