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

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


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

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


Example 3
Input:
Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow
Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow
Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue
Brown Brown Blue Black Black Blue Purple Brown Brown Blue Blue Blue Blue Purple Brown Brown Blue Blue Blue Blue Purple
Brown Pink Pink Black Black Blue Blue Brown Pink Pink Yellow Blue Blue Blue Brown Pink Pink Yellow Blue Blue Blue
Orange Brown Orange Black Black Blue Blue Orange Brown Orange Blue Blue Blue Blue Orange Brown Orange Blue Blue Blue Blue
Blue Blue Yellow Red Red Brown Brown Blue Blue Yellow Red Red Brown Brown Blue Blue Yellow Red Red Brown Brown
Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow
Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow
Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue
Brown Brown Blue Blue Blue Blue Purple Brown Brown Blue Blue Blue Blue Purple Brown Brown Blue Blue Blue Blue Purple
Brown Pink Pink Yellow Blue Blue Blue Brown Pink Pink Yellow Blue Blue Blue Brown Pink Pink Yellow Blue Blue Blue
Orange Brown Orange Blue Blue Blue Blue Orange Brown Orange Blue Blue Blue Blue Orange Brown Orange Blue Blue Blue Blue
Blue Blue Yellow Red Red Brown Brown Blue Blue Yellow Red Red Brown Brown Blue Blue Yellow Red Red Brown Brown
Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow Orange Orange Purple Brown Orange Yellow Yellow
Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow Orange Orange Brown Brown Purple Blue Yellow
Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue Blue Pink Pink Brown Orange Purple Blue

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


Here is the input grid for the test example:
Input:
Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue
Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red
Purple Purple Yellow Red Yellow Purple Purple Purple Purple Yellow Red Yellow Purple Purple Purple Purple Yellow Red Yellow
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Black
Brown Brown Pink Purple Pink Brown Red Brown Brown Pink Purple Pink Brown Red Brown Brown Pink Purple Black
Red Red Blue Purple Blue Brown Red Red Red Blue Purple Blue Brown Red Red Red Blue Purple Blue
Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue
Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red
Purple Purple Yellow Red Yellow Purple Purple Purple Purple Yellow Red Yellow Purple Purple Purple Purple Black Red Yellow
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Black Yellow Red
Brown Brown Pink Purple Pink Brown Red Brown Brown Pink Purple Pink Brown Red Brown Brown Pink Purple Pink
Red Red Blue Purple Blue Brown Red Red Red Blue Purple Blue Brown Red Red Red Blue Purple Blue
Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue Red Red Red Brown Blue Purple Blue
Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink Brown Brown Red Brown Pink Purple Pink
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red
Purple Purple Yellow Red Yellow Purple Purple Purple Purple Yellow Red Yellow Purple Purple Purple Purple Yellow Red Yellow
Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red Pink Blue Blue Pink Red Yellow Red


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:

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