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

Output:
Orange Blue Green Green Red Green Black Green Green Black Red Green Green Green Yellow Green Green Orange Blue Yellow Orange Green Black
Black Red Green Green Yellow Green Green Red Orange Black Red Black Green Green Green Red Black Green Green Green Blue Green Green
Yellow Green Orange Green Blue Orange Blue Black Yellow Orange Red Black Black Orange Green Blue Black Orange Blue Red Green Yellow Green
Blue Green Yellow Black Green Green Green Red Orange Black Green Orange Red Black Green Black Black Red Yellow Yellow Green Yellow Orange
Green Red Green Black Black Blue Green Green Green Green Green Green Green Red Black Green Red Green Black Green Orange Yellow Orange
Black Orange Blue Green Red Yellow Green Black Green Blue Green Red Yellow Black Green Black Green Blue Yellow Orange Green Green Green
Yellow Orange Black Blue Green Black Green Yellow Green Green Orange Black Red Black Green Yellow Green Blue Red Green Green Yellow Red
Green Yellow Green Black Green Orange Green Green Green Black Yellow Green Green Orange Red Green Green Green Black Black Blue Black Black
Red Green Blue Green Black Blue Green Green Black Green Green Orange Green Green Green Blue Green Green Green Green Green Black Green
Orange Blue Black Green Green Blue Green Red Green Black Yellow Orange Red Green Green Yellow Black Yellow Red Orange Green Orange Blue
Black Red Black Blue Blue Blue Green Yellow Green Green Green Blue Green Blue Black Green Green Red Orange Yellow Red Yellow Blue
Green Green Green Green Green Orange Orange Red Black Orange Green Blue Blue Green Green Red Orange Green Green Black Yellow Green Green
Yellow Green Orange Yellow Green Black Green Green Green Red Green Yellow Blue Red Green Green Yellow Green Green Green Green Orange Black
Green Black Black Red Green Yellow Green Blue Orange Red Red Black Green Blue Green Blue Black Green Black Orange Green Black Green
Green Yellow Green Black Black Yellow Green Green Red Green Yellow Green Black Blue Orange Blue Red Green Black Green Orange Green Black
Black Green Green Orange Blue Black Red Red Green Green Orange Yellow Yellow Green Green Black Green Yellow Black Black Green Yellow Yellow
Red Green Green Green Red Red Green Black Yellow Green Green Black Black Yellow Green Green Green Green Black Green Green Green Yellow
Yellow Yellow Orange Black Black Black Green Green Black Red Green Blue Green Green Black Yellow Black Green Green Green Red Green Green
Yellow Yellow Green Green Black Orange Black Green Orange Blue Green Black Orange Blue Green Yellow Red Green Green Black Black Red Black
Red Green Green Green Orange Yellow Green Yellow Green Green Green Green Black Green Yellow Black Green Yellow Black Red Blue Blue Green
Green Blue Black Green Orange Black Orange Yellow Orange Green Green Green Red Green Blue Red Orange Red Green Black Green Green Black
Red Red Blue Green Green Red Green Orange Green Green Black Yellow Black Orange Red Green Orange Red Orange Black Blue Green Green
Black Blue Orange Green Black Blue Green Black Black Yellow Yellow Yellow Blue Black Green Blue Orange Green Black Green Orange Blue Green
Green Blue Black Yellow Blue Yellow Black Black Green Green Black Black Green Black Green Black Blue Black Black Black Yellow Red Black
Orange Black Green Green Black Black Red Green Green Green Red Green Green Orange Green Yellow Black Yellow Yellow Green Blue Blue Blue
Red Blue Orange Orange Green Green Yellow Orange Black Green Blue Green Orange Green Green Red Green Green Blue Orange Green Green Blue
Green Black Orange Yellow Blue Green Red Orange Green Black Yellow Green Red Blue Blue Black Black Green Black Red Green Green Green


Example 2
Input:
Green Orange Blue Green Green Blue Yellow Green Green Green Yellow Black Green Yellow Black Black Black Green Green Green Green Blue
Green Yellow Green Green Green Blue Green Black Blue Orange Blue Red Yellow Green Yellow Green Black Red Green Blue Green Green
Green Green Black Yellow Blue Green Orange Green Green Black Yellow Yellow Green Black Orange Green Green Green Orange Green Green Blue
Green Black Green Green Yellow Black Green Yellow Black Green Green Red Blue Red Orange Red Green Red Black Green Green Green
Green Red Yellow Green Red Black Green Green Blue Orange Orange Red Orange Blue Yellow Orange Green Blue Blue Black Black Green
Blue Green Yellow Green Yellow Green Green Green Green Green Orange Green Green Green Orange Yellow Black Green Black Green Black Green
Green Green Black Orange Green Green Green Green Red Black Green Black Red Black Black Black Green Green Green Red Red Yellow
Orange Green Green Black Green Yellow Green Orange Green Black Green Green Orange Black Black Blue Yellow Yellow Green Green Green Blue
Blue Black Green Yellow Yellow Black Blue Orange Red Green Black Green Red Red Red Black Blue Yellow Green Yellow Black Green
Green Black Green Black Red Green Blue Orange Green Green Yellow Green Green Green Yellow Orange Black Blue Yellow Green Green Green
Green Green Green Green Orange Green Blue Green Green Yellow Green Green Green Black Green Black Black Red Green Orange Black Blue
Black Black Yellow Red Red Green Orange Red Orange Green Orange Orange Green Green Orange Black Black Black Green Black Blue Black
Green Green Red Yellow Black Orange Blue Green Red Red Green Yellow Green Blue Red Red Orange Green Black Yellow Red Blue
Black Red Green Blue Green Green Red Black Green Black Red Black Black Green Green Green Green Orange Blue Yellow Blue Green
Yellow Green Green Black Black Orange Red Green Yellow Black Green Black Orange Yellow Black Red Green Green Green Black Orange Green
Green Green Red Orange Blue Blue Green Black Orange Blue Black Green Green Orange Black Yellow Orange Red Green Green Green Green
Green Blue Yellow Yellow Green Black Black Green Yellow Black Yellow Green Red Red Red Green Red Blue Green Green Green Red
Black Green Green Green Black Green Orange Green Blue Green Yellow Orange Orange Orange Green Green Green Blue Black Black Green Yellow
Green Orange Blue Green Black Green Yellow Black Red Black Orange Green Red Green Red Green Black Orange Black Black Blue Green
Blue Green Red Green Red Green Green Black Green Green Green Black Orange Blue Orange Blue Blue Green Red Black Green Green
Yellow Blue Red Orange Green Black Blue Black Red Blue Blue Yellow Green Orange Green Blue Black Orange Yellow Green Blue Yellow
Black Orange Green Green Black Yellow Green Yellow Black Black Black Black Black Orange Green Black Red Orange Black Green Yellow Green
Green Green Black Green Blue Black Yellow Blue Green Green Blue Red Green Orange Green Red Blue Green Black Yellow Black Green
Green Yellow Black Black Black Yellow Black Green Green Green Green Green Black Green Green Green Red Green Red Green Red Green
Green Orange Orange Yellow Red Green Green Black Orange Orange Green Green Green Green Black Black Blue Black Green Red Green Blue

Output:
Green Orange Blue Yellow Yellow Blue Yellow Green Green Green Yellow Black Green Yellow Black Black Black Green Green Green Green Blue
Green Yellow Green Yellow Yellow Blue Green Black Blue Orange Blue Red Yellow Green Yellow Green Black Red Green Blue Green Green
Green Green Black Yellow Blue Green Orange Green Green Black Yellow Yellow Green Black Orange Green Green Green Orange Green Green Blue
Green Black Green Green Yellow Black Green Yellow Black Green Green Red Blue Red Orange Red Green Red Black Green Green Green
Green Red Yellow Green Red Black Green Green Blue Orange Orange Red Orange Blue Yellow Orange Green Blue Blue Black Black Green
Blue Green Yellow Green Yellow Green Green Green Green Green Orange Green Green Green Orange Yellow Black Green Black Green Black Green
Green Green Black Orange Green Green Green Green Red Black Green Black Red Black Black Black Green Green Green Red Red Yellow
Orange Green Green Black Green Yellow Green Orange Green Black Green Green Orange Black Black Blue Yellow Yellow Green Green Green Blue
Blue Black Green Yellow Yellow Black Blue Orange Red Green Black Green Red Red Red Black Blue Yellow Green Yellow Black Green
Green Black Green Black Red Green Blue Orange Green Green Yellow Green Green Green Yellow Orange Black Blue Yellow Green Green Green
Green Green Green Green Orange Green Blue Green Green Yellow Green Green Green Black Green Black Black Red Green Orange Black Blue
Black Black Yellow Red Red Green Orange Red Orange Green Orange Orange Green Green Orange Black Black Black Green Black Blue Black
Green Green Red Yellow Black Orange Blue Green Red Red Green Yellow Green Blue Red Red Orange Green Black Yellow Red Blue
Black Red Green Blue Green Green Red Black Green Black Red Black Black Green Green Green Green Orange Blue Yellow Blue Green
Yellow Green Green Black Black Orange Red Green Yellow Black Green Black Orange Yellow Black Red Green Green Green Black Orange Green
Green Green Red Orange Blue Blue Green Black Orange Blue Black Green Green Orange Black Yellow Orange Red Green Green Green Green
Green Blue Yellow Yellow Green Black Black Green Yellow Black Yellow Green Red Red Red Green Red Blue Green Green Green Red
Black Green Green Green Black Green Orange Green Blue Green Yellow Orange Orange Orange Green Green Green Blue Black Black Green Yellow
Green Orange Blue Green Black Green Yellow Black Red Black Orange Green Red Green Red Green Black Orange Black Black Blue Green
Blue Green Red Green Red Green Green Black Green Green Green Black Orange Blue Orange Blue Blue Green Red Black Green Green
Yellow Blue Red Orange Green Black Blue Black Red Blue Blue Yellow Green Orange Green Blue Black Orange Yellow Green Blue Yellow
Black Orange Green Green Black Yellow Green Yellow Black Black Black Black Black Orange Green Black Red Orange Black Green Yellow Green
Green Green Black Green Blue Black Yellow Blue Green Green Blue Red Green Orange Green Red Blue Green Black Yellow Black Green
Green Yellow Black Black Black Yellow Black Green Green Green Green Green Black Green Green Green Red Green Red Green Red Green
Green Orange Orange Yellow Red Green Green Black Orange Orange Green Green Green Green Black Black Blue Black Green Red Green Blue


Example 3
Input:
Green Black Black Blue Green Blue Blue Green Orange Orange Red Green Green Green Black Black Yellow Blue Green Green Red Black
Red Orange Black Black Red Blue Yellow Black Black Yellow Red Orange Yellow Green Blue Green Black Blue Yellow Green Orange Green
Black Green Black Green Green Red Orange Black Black Blue Black Green Red Yellow Green Black Yellow Black Blue Green Green Green
Green Green Blue Green Green Black Black Green Orange Blue Red Green Green Black Black Blue Green Green Green Green Orange Black
Black Green Green Green Green Blue Yellow Green Green Green Orange Orange Blue Red Green Red Yellow Yellow Black Black Green Blue
Green Blue Yellow Orange Red Blue Red Black Red Green Black Black Orange Green Blue Yellow Green Blue Green Black Orange Red
Green Green Red Orange Green Green Orange Black Green Red Orange Green Green Yellow Blue Orange Black Orange Black Black Black Black
Green Yellow Green Green Black Red Green Orange Red Red Green Black Green Green Green Yellow Green Green Green Blue Green Green
Orange Blue Blue Yellow Black Orange Blue Blue Green Red Green Black Yellow Black Blue Green Yellow Yellow Orange Blue Green Green
Green Green Black Black Blue Black Black Green Blue Green Orange Green Green Red Blue Green Green Orange Yellow Yellow Red Green
Black Black Orange Green Green Black Orange Green Blue Green Black Red Green Black Green Green Black Yellow Green Green Red Red
Black Yellow Green Green Yellow Red Green Red Black Black Black Orange Green Red Green Green Red Yellow Green Black Red Orange
Yellow Green Green Orange Green Yellow Orange Green Yellow Yellow Green Green Green Black Black Green Blue Green Green Orange Orange Green
Green Green Green Black Green Black Green Yellow Green Orange Red Blue Red Yellow Black Black Green Black Green Black Orange Red
Green Black Green Green Yellow Green Black Green Green Yellow Black Green Yellow Green Black Blue Yellow Green Red Black Black Blue
Orange Green Red Orange Green Green Blue Black Black Green Black Blue Green Green Black Red Orange Yellow Green Black Blue Black
Blue Yellow Red Blue Green Orange Green Orange Blue Black Blue Black Green Orange Black Green Orange Black Black Green Green Yellow
Black Yellow Red Blue Green Green Red Orange Yellow Blue Green Orange Yellow Red Black Green Orange Green Orange Blue Green Black
Black Yellow Black Green Green Green Black Green Black Black Red Orange Green Green Green Green Blue Yellow Red Black Black Green
Black Red Green Green Green Red Yellow Black Black Green Red Green Blue Green Green Green Green Blue Orange Green Orange Green
Green Green Red Green Green Orange Black Green Yellow Green Green Green Green Green Green Blue Black Green Black Red Orange Blue
Yellow Green Green Orange Green Blue Green Black Black Green Green Orange Black Black Green Blue Blue Yellow Green Orange Green Green
Green Yellow Green Green Green Red Orange Green Blue Yellow Blue Black Green Red Yellow Black Yellow Green Red Green Orange Yellow
Green Yellow Red Red Black Green Yellow Red Black Green Green Green Green Orange Green Yellow Green Green Green Green Black Black
Green Green Blue Red Orange Red Blue Blue Red Green Yellow Green Green Green Yellow Green Green Yellow Orange Black Red Green
Red Black Green Green Black Green Green Green Green Green Green Green Green Green Green Black Green Green Green Black Green Green

Output:
Green Black Black Blue Green Blue Blue Green Orange Orange Red Green Green Green Black Black Yellow Blue Green Green Red Black
Red Orange Black Black Red Blue Yellow Black Black Yellow Red Orange Yellow Green Blue Green Black Blue Yellow Green Orange Green
Black Green Black Green Green Red Orange Black Black Blue Black Green Red Yellow Green Black Yellow Black Blue Green Green Green
Green Green Blue Green Green Black Black Green Orange Blue Red Green Green Black Black Blue Green Green Green Green Orange Black
Black Green Green Green Green Blue Yellow Green Green Green Orange Orange Blue Red Green Red Yellow Yellow Black Black Green Blue
Green Blue Yellow Orange Red Blue Red Black Red Green Black Black Orange Green Blue Yellow Green Blue Green Black Orange Red
Green Green Red Orange Green Green Orange Black Green Red Orange Green Green Yellow Blue Orange Black Orange Black Black Black Black
Green Yellow Green Green Black Red Green Orange Red Red Green Black Green Green Green Yellow Green Green Green Blue Green Green
Orange Blue Blue Yellow Black Orange Blue Blue Green Red Green Black Yellow Black Blue Green Yellow Yellow Orange Blue Green Green
Green Green Black Black Blue Black Black Green Blue Green Orange Green Green Red Blue Green Green Orange Yellow Yellow Red Green
Black Black Orange Green Green Black Orange Green Blue Green Black Red Green Black Green Green Black Yellow Green Green Red Red
Black Yellow Green Green Yellow Red Green Red Black Black Black Orange Green Red Green Green Red Yellow Green Black Red Orange
Yellow Yellow Yellow Orange Green Yellow Orange Green Yellow Yellow Green Green Green Black Black Green Blue Green Green Orange Orange Green
Green Yellow Yellow Black Green Black Green Yellow Green Orange Red Blue Red Yellow Black Black Green Black Green Black Orange Red
Green Black Green Green Yellow Green Black Green Green Yellow Black Green Yellow Green Black Blue Yellow Green Red Black Black Blue
Orange Green Red Orange Green Green Blue Black Black Green Black Blue Green Green Black Red Orange Yellow Green Black Blue Black
Blue Yellow Red Blue Green Orange Green Orange Blue Black Blue Black Green Orange Black Green Orange Black Black Green Green Yellow
Black Yellow Red Blue Green Green Red Orange Yellow Blue Green Orange Yellow Red Black Green Orange Green Orange Blue Green Black
Black Yellow Black Green Green Green Black Green Black Black Red Orange Green Green Green Green Blue Yellow Red Black Black Green
Black Red Green Green Green Red Yellow Black Black Green Red Green Blue Green Green Green Green Blue Orange Green Orange Green
Green Green Red Green Green Orange Black Green Yellow Green Green Green Green Green Green Blue Black Green Black Red Orange Blue
Yellow Green Green Orange Green Blue Green Black Black Green Green Orange Black Black Green Blue Blue Yellow Green Orange Green Green
Green Yellow Green Green Green Red Orange Green Blue Yellow Blue Black Green Red Yellow Black Yellow Green Red Green Orange Yellow
Green Yellow Red Red Black Green Yellow Red Black Green Green Green Green Orange Green Yellow Green Green Green Green Black Black
Green Green Blue Red Orange Red Blue Blue Red Green Yellow Green Green Green Yellow Green Green Yellow Orange Black Red Green
Red Black Green Green Black Green Green Green Green Green Green Green Green Green Green Black Green Green Green Black Green Green


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


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:

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