p03594 CODE FESTIVAL 2017 qual A - Four Coloring_9783
We have a grid with H rows and W columns of squares. We will represent the square at the i-th row from the top and j-th column from the left as (i,\ j). Also, we will define the distance between the squares (i_1,\ j_1) and (i_2,\ j_2) as |i_1 - i_2| + |j_1 - j_2|.

Snuke is painting each square in red, yellow, green or blue. Here, for a given positive integer d, he wants to satisfy the following condition:

* No two squares with distance exactly d have the same color.



Find a way to paint the squares satisfying the condition. It can be shown that a solution always exists.

Constraints

* 2 ≤ H, W ≤ 500
* 1 ≤ d ≤ H + W - 2

Input

Input is given from Standard Input in the following format:


H W d


Output

Print a way to paint the squares satisfying the condition, in the following format. If the square (i,\ j) is painted in red, yellow, green or blue, c_{ij} should be `R`, `Y`, `G` or `B`, respectively.


c_{11}c_{12}...c_{1W}
:
c_{H1}c_{H2}...c_{HW}

Output

Print a way to paint the squares satisfying the condition, in the following format. If the square (i,\ j) is painted in red, yellow, green or blue, c_{ij} should be `R`, `Y`, `G` or `B`, respectively.


c_{11}c_{12}...c_{1W}
:
c_{H1}c_{H2}...c_{HW}

Examples

Input

2 2 1


Output

RY
GR


Input

2 3 2


Output

RYB
RGB
#!usr/bim/python
#! -*- coding: utf-8 -*-

hwd = raw_input()
hwd = hwd.split()
h,w,d = map(int,hwd)

if d % 2 == 0:
    for i in range(h):
        s = ""
        for j in range(w):
            if i%(2*d) < d/2:
                if i%d <= j%(2*d) and j%(2*d) < d-i%d:
                    s += "R"
                elif d-i%d <= j%(2*d) and j%(2*d) < d+i%d:
                    s += "Y"
                elif d+i%d <= j%(2*d) and j%(2*d) < 2*d-i%d:
                    s += "G"
                else:
                    s += "B"
            elif i%(2*d) < d/2*2:
                if (d-i)%d <= j%(2*d) and j%(2*d) < d-(d-i)%d:
                    s += "G"
                elif d-(d-i)%d <= j%(2*d) and j%(2*d) < d+(d-i)%d:
                    s += "Y"
                elif d+(d-i)%d <= j%(2*d) and j%(2*d) < 2*d-(d-i)%d:
                    s += "R"
                else:
                    s += "B"
            elif i%(2*d) < d/2*3:
                if i%d <= j%(2*d) and j%(2*d) < d-i%d:
                    s += "G"
                elif d-i%d <= j%(2*d) and j%(2*d) < d+i%d:
                    s += "B"
                elif d+i%d <= j%(2*d) and j%(2*d) < 2*d-i%d:
                    s += "R"
                else:
                    s += "Y"
            else:
                if (d-i)%d <= j%(2*d) and j%(2*d) < d-(d-i)%d:
                    s += "R"
                elif d-(d-i)%d <= j%(2*d) and j%(2*d) < d+(d-i)%d:
                    s += "B"
                elif d+(d-i)%d <= j%(2*d) and j%(2*d) < 2*d-(d-i)%d:
                    s += "G"
                else:
                    s += "Y"
        print s
else:
    for i in range(h):
        s = ""
        for j in range(w):
            if (i+j)% 2 == 0:
                s += "R"
            else:
                s += "Y"
        print s

2 2 1 2 3 2 3 3 2 3 3 3 3 2 3 1 2 3 1 4 3 1 4 5 1 6 5 1 6 4 1 8 4 1 1 4 3 2 1 2 5 2 6 3 2 6 3 3 3 2 6 1 2 2 1 3 3 1 5 4 3 3 1 2 6 2 6 3 6 3 4 3 1 2 1 1 6 3 2 5 4 1 1 1 3 5 1 2 6 4 6 1 6 2 1 1 3 5 2 2 1 2 1 5 2 2 2 4 4 2 4 2 1 5 4 1 5 2 2 2 3 6 3 2 6 3 1 5 3 1 6 1 6 2 1 2 8 2 3 3 4 9 3 3 1 6 7 3 1 1 6 6 6 3 4 5 2 4 4 3 4 1 6 1 5 3 1 2 4 1 1 5 1 1 2 3 4 7 2 4 7 1 10 2 4 2 4 3 3 2 2 3 1 11 1 1 8 2 9 3 2 2 6 7 6 6 12 3 6 5 3 4 4 6 3 1 3 1 4 2 3 3 7 2 2 6 2 5 7 2 10 4 4 4 5 3 3 1 3 2 8 3 2 2 6 5 6 7 12 3 8 5 3 2 4 6 6 1 4 4 3 7 2 1 6 2 3 7 4 10 4 3 5 8 4 2 2 11 5 6 2 12 3 8 3 7 6 1 6 4 3 7 3 10 4 1 2 8 4 1 1 11 5 10 2 12
RY
GR RYB
RGB YYG
RBB
GGY
 YRR
YYG
Y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