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

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


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

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


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

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


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

```
Blue Gray Yellow Red Red
Brown Yellow Yellow Yellow Pink
Gray Yellow Yellow Yellow Brown
Orange Yellow Yellow Yellow Brown
Gray Pink Orange Brown Pink
```
assistant