You have a garland consisting of $n$ lamps. Each lamp is colored red, green or blue. The color of the $i$-th lamp is $s_i$ ('R', 'G' and 'B' — colors of lamps in the garland).

You have to recolor some lamps in this garland (recoloring a lamp means changing its initial color to another) in such a way that the obtained garland is nice.

A garland is called nice if any two lamps of the same color have distance divisible by three between them. I.e. if the obtained garland is $t$, then for each $i, j$ such that $t_i = t_j$ should be satisfied $|i-j|~ mod~ 3 = 0$. The value $|x|$ means absolute value of $x$, the operation $x~ mod~ y$ means remainder of $x$ when divided by $y$.

For example, the following garlands are nice: "RGBRGBRG", "GB", "R", "GRBGRBG", "BRGBRGB". The following garlands are not nice: "RR", "RGBG".

Among all ways to recolor the initial garland to make it nice you have to choose one with the minimum number of recolored lamps. If there are multiple optimal solutions, print any of them.


-----Input-----

The first line of the input contains one integer $n$ ($1 \le n \le 2 \cdot 10^5$) — the number of lamps.

The second line of the input contains the string $s$ consisting of $n$ characters 'R', 'G' and 'B' — colors of lamps in the garland.


-----Output-----

In the first line of the output print one integer $r$ — the minimum number of recolors needed to obtain a nice garland from the given one.

In the second line of the output print one string $t$ of length $n$ — a nice garland obtained from the initial one with minimum number of recolors. If there are multiple optimal solutions, print any of them.


-----Examples-----
Input
3
BRB

Output
1
GRB

Input
7
RGBGRBB

Output
3
RGBRGBR
[{"code": "n = int(input())\narr = ['RGB', 'RBG', 'GRB', 'GBR', 'BRG', 'BGR']\ns = input()\ncnts = []\nfor i in arr:\n    cnt = 0\n    for j in range(len(s)):\n        if s[j] == i[j % 3]:\n            cnt += 1\n    cnts.append(cnt)\nk = cnts.index(max(cnts))\ns = arr[k] * (n // 3 + 1)\ns = s[:n]\nprint(n - max(cnts))\nprint(s)", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "n = int(input())\ns = input().strip()\nbest, ans = n, None\nfor p in ('RGB', 'RBG', 'GRB', 'GBR', 'BRG', 'BGR'):\n    t = p * ((n + 2) // 3)\n    c = sum(x != y for x, y in zip(s, t))\n    if c < best:\n        best = c\n        ans = t[:n]\nprint(best, ans, sep='\\n')", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "from itertools import permutations\n\nn = int(input())\nseq = input()\n\nls = list(permutations(\"RGB\"))\nfor i in range(len(ls)):\n    ls[i] = ''.join(ls[i])\n\nstrans = \"\"\nans = n\nfor tes in ls:\n    tes = (tes * (n // 3 + 1))\n    cur = 0\n    for i in range(len(seq)):\n        if tes[i] != seq[i]:\n            cur += 1\n    if cur < ans:\n        ans = min(ans, cur)\n        strans = tes[:len(seq)]\n    # print(tes, seq, ans, cur)\nprint(ans)\nprint(strans)\n", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "import itertools\nN = int(input())\nColor = input()\nans = float('inf')\nfor c in itertools.permutations(('R', 'G', 'B')):\n    ctr = 0\n    for i, v in enumerate(Color):\n        if c[i%3] != v:\n            ctr += 1\n    if ctr < ans:\n        ans = ctr\n        Ans = ''.join([c[i%3] for i in range(N)])\nprint(ans)\nprint(Ans)", "passed": true, "time": 0.15, "memory": 14332.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nlens=len(s)\nans,ans2=10**9,\"\"\n\nfor ca in range(6):\n    if 0<=ca<=1:\n        st=\"R\"\n    elif 2<=ca<=3:\n        st=\"G\"\n    else:\n        st=\"B\"\n\n    ss=[0]*lens\n    for i in range(lens):\n        ss[i]=st\n        if st==\"R\":\n            if ca%2==0: st=\"G\"\n            else: st=\"B\"\n        elif st==\"G\":\n            if ca%2==0: st=\"B\"\n            else: st=\"R\"\n        else:\n            if ca%2==0: st=\"R\"\n            else: st=\"G\"\n\n    diff=0\n    for i in range(lens):\n        if ss[i]!=s[i]: diff+=1\n\n    if diff<ans:\n        ans,ans2=diff,\"\".join(ss)\n\nprint(ans,ans2,sep=\"\\n\")", "passed": true, "time": 0.17, "memory": 14396.0, "status": "done"}, {"code": "import itertools\nn = int(input())\ns = input()\nbest_pattern = None\nbest_count = None\nfor pattern in itertools.permutations(\"RGB\", 3):\n    count = 0\n    for i, ch in enumerate(s):\n        if ch != pattern[i % 3]:\n            count += 1\n    if best_count is None or best_count > count:\n        best_count, best_pattern = count, pattern\n\nprint(best_count)\nfull, tail = divmod(n, 3)\nprint(\"\".join(best_pattern * full + best_pattern[:tail]))\n", "passed": true, "time": 0.15, "memory": 14312.0, "status": "done"}, {"code": "import itertools\n\nn = int(input())\nlamps = input()\n\nperms = itertools.permutations(['R', 'G', 'B'])\nbest = n\nfor p in perms:\n    recolors = 0\n    for i in range(n):\n        if lamps[i] != p[i%3]:\n            recolors += 1\n    if recolors < best:\n        best = recolors\n        bestp = p\n\nprint(best)\nprint(''.join(itertools.islice(itertools.cycle(bestp), n)))\n\n", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "n = int(input())\ng = input()\nvariants = [['R', 'G', 'B'], ['R', 'B', 'G'], ['G', 'R', 'B'], ['G', 'B', 'R'], ['B', 'R', 'G'], ['B', 'G', 'R']]\n\nbest_cost = n\nbest = None\nfor v in variants:\n    cost = 0\n    for i in range(n):\n        if g[i] != v[i%3]: cost += 1\n    if cost < best_cost:\n        best_cost = cost\n        best = v\n        \nprint(best_cost)\nfor i in range(n):\n    print(best[i % 3], end='')\n    \nprint()\n", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n = int(input())\ns = input()\nbaz = ['RGB','RBG','GBR', 'GRB', 'BRG', 'BGR']\nfor i in range(len(baz)):\n    baz[i] = (baz[i] * n)[0:n]\nans = 10 ** 9\ntext = baz[0]\nfor i in baz:\n    ch = 0\n    for j in range(n):\n        if s[j] != i[j]:\n            ch += 1\n    if ch < ans:\n        text = i\n    ans = min(ans, ch)\nprint(ans)\nprint(text)", "passed": true, "time": 0.24, "memory": 14140.0, "status": "done"}, {"code": "n=int(input())\ns=input()\nc=['RGB','RBG','GRB','GBR','BRG','BGR']\nans=10**9\nss=''\nfor base in c:\n\tx=base*(len(s)//3+1)\n\tt=0\n\tfor j in range(len(s)):\n\t\tif s[j]!=x[j]:t+=1\n\tif t<ans:\n\t\tans=t\n\t\tss=x[:len(s)]\nprint(ans)\nprint(ss)\n", "passed": true, "time": 0.15, "memory": 14160.0, "status": "done"}, {"code": "f=[\"R\",\"G\",\"B\"]\nn=int(input())\ns=input()\nb=n*[0]\nfor i in range(len(s)):\n    if s[i]==\"R\":\n        b[i]=0\n    elif s[i]==\"G\":\n        b[i]=1\n    else:\n        b[i]=2\nd=[[0,1,2],[0,2,1],[1,0,2],[1,2,0],[2,0,1],[2,1,0]]\nr=[]\nfor i in range(len(d)):\n    g=0\n    for j in range(len(b)):\n        if b[j]!=d[i][j%3]:\n            g+=1\n    r+=[g]\n    if g==0:\n        break\np=min(r)\ne=d[r.index(p)]\nprint(p)\nq=''\nfor i in range(n):\n    q+=f[e[i%3]]\nprint(q)\n", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}]