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

Output:
Brown Brown Purple Gray Orange
Green Green Blue Blue Gray
Blue Black Black Black Blue
Green Green Blue Blue Gray
Brown Brown Purple Gray Orange


Example 2
Input:
Orange Blue Brown Gray Gray
Brown Gray Gray Gray Gray
Red Pink Pink Pink Gray
Brown Gray Gray Gray Gray
Orange Blue Brown Gray Gray

Output:
Orange Blue Brown Gray Gray
Brown Gray Gray Gray Gray
Black Pink Black Pink Black
Brown Gray Gray Gray Gray
Orange Blue Brown Gray Gray


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

Output:
Orange Orange Blue Purple Purple
Orange Blue Yellow Purple Purple
Black Black Black Black Black
Orange Blue Yellow Purple Purple
Orange Orange Blue Purple Purple


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


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:

```
Green Yellow Yellow Yellow Yellow
Orange Orange Orange Red Green
Black Black Black Black Black
Orange Orange Orange Red Green
Green Yellow Yellow Yellow Yellow
```
assistant