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

Output:
Blue Blue Green Purple Purple
Blue Blue Yellow Green Red
Purple Blue Yellow Blue Red
Green Green Yellow Red Yellow
Green Yellow Purple Yellow Red


Example 2
Input:
Green Green Yellow Blue Yellow
Green Red Green Blue Purple
Red Purple Red Blue Red
Blue Purple Blue Purple Blue
Green Purple Blue Yellow Yellow

Output:
Purple Red Purple Blue Blue
Yellow Red Blue Green Blue
Green Red Green Yellow Green
Red Yellow Red Yellow Red
Purple Purple Red Yellow Blue


Example 3
Input:
Green Purple Blue Yellow Yellow
Green Red Red Purple Green
Blue Purple Red Red Blue
Yellow Green Green Purple Green
Blue Blue Blue Green Yellow

Output:
Purple Purple Red Yellow Blue
Blue Yellow Green Green Blue
Red Green Green Yellow Red
Blue Yellow Blue Blue Purple
Purple Blue Red Red Red


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

```
Yellow Green Yellow Yellow Yellow
Blue Purple Yellow Red Blue
Red Yellow Yellow Red Red
Purple Blue Red Red Purple
Red Yellow Purple Green Red
```
assistant