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

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


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

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


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

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


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


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:

```
Brown Pink Gray Pink
Gray Pink Green Brown
Gray Brown Pink Yellow
Gray Pink Gray Gray
```
assistant