m=n=input() s=" "*n+"RGB"+" "*n while 1:t=s[m-n:m];print t+s[m]*2*n+t[::-1].rstrip();m+=1