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

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


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

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


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

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


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

```
Pink Orange Purple Blue Green Yellow Red Yellow Green Pink Blue Pink Yellow Brown Brown Blue Purple Brown Purple Green
Brown Orange Pink Pink Brown Yellow Blue Yellow Orange Yellow Green Red Brown Green Yellow Brown Purple Yellow Green Green
Purple Red Purple Green Green Pink Pink Yellow Red Purple Orange Green Red Green Yellow Purple Blue Pink Orange Red
Orange Blue Purple Yellow Yellow Blue Blue Purple Purple Green Blue Yellow Brown Pink Yellow Orange Brown Green Orange Yellow
Green Purple Yellow Orange Yellow Orange Orange Brown Yellow Yellow Purple Purple Purple Green Red Purple Green Pink Red Red
Purple Yellow Brown Red Yellow Brown Red Purple Brown Purple Red Yellow Blue Yellow Green Orange Green Red Yellow Yellow
Green Yellow Blue Red Yellow Purple Pink Yellow Orange Blue Red Green Brown Pink Green Orange Blue Orange Red Purple
Pink Orange Green Orange Green Yellow Purple Red Blue Purple Purple Blue Purple Yellow Orange Blue Brown Red Green Blue
Blue Brown Green Purple Green Red Yellow Pink Purple Pink Purple Purple Purple Red Orange Yellow Green Brown Red Pink
Pink Purple Pink Green Brown Brown Red Blue Yellow Blue Blue Blue Red Yellow Pink Purple Red Green Orange Green
Purple Purple Red Blue Red Purple Purple Red Red Orange Pink Pink Red Brown Green Pink Blue Green Green Pink
Green Orange Pink Pink Yellow Green Blue Pink Green Orange Red Orange Pink Orange Pink Red Purple Brown Pink Orange
Yellow Red Yellow Purple Orange Yellow Orange Blue Green Red Yellow Brown Red Pink Brown Yellow Yellow Pink Pink Orange
Green Red Yellow Brown Purple Green Orange Red Yellow Pink Blue Yellow Purple Green Purple Red Yellow Blue Yellow Blue
Red Brown Blue Red Red Yellow Purple Green Pink Purple Blue Yellow Brown Purple Yellow Green Purple Red Yellow Green
Brown Brown Blue Brown Purple Blue Orange Orange Yellow Blue Orange Yellow Yellow Blue Pink Yellow Pink Pink Yellow Green
Purple Red Orange Pink Green Pink Green Blue Brown Green Purple Brown Brown Yellow Blue Green Red Yellow Yellow Red
Pink Blue Red Pink Yellow Orange Red Red Blue Red Brown Brown Purple Blue Purple Yellow Brown Purple Green Pink
Blue Brown Orange Purple Yellow Orange Orange Brown Brown Blue Green Yellow Brown Blue Purple Purple Orange Red Yellow Brown
Pink Red Pink Green Yellow Brown Blue Pink Yellow Green Blue Blue Orange Pink Brown Orange Pink Orange Blue Yellow
```
assistant