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

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


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

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


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

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


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


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:

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