#include <stdio.h>

#define W 8
#define H 6

int main(void)
{
    char map[H][W] = {
        {1,1,1,1,1,1,1,1},
        {1,0,0,0,0,0,0,1},
        {1,0,1,1,1,0,1,1},
        {1,0,0,0,0,1,0,1},
        {1,0,0,1,0,0,2,1},
        {1,1,1,1,1,1,1,1},
    };

    int x, y;

    for(y = 0; y < H; y++)
    {
        for(x = 0; x < W; x++)
        {
            if(map[y][x] == 0)
            {
                printf(" ");
            }
            else if(map[y][x] == 1)
            {
                printf("#");
            }
            else if(map[y][x] == 2)
            {
                printf("G");
            }
        }

        printf("\n");
    }

    return 0;
}