Problem: There are n lanterns in a row. The lantern i is placed in position i and has power equal to p_i.

Each lantern can be directed to illuminate either some lanterns to the left or some lanterns to the right. If the i-th lantern is turned to the left, it illuminates all such lanterns j that j ∈ [i - p_i, i - 1]. Similarly, if it is turned to the right, it illuminates all such lanterns j that j ∈ [i + 1, i + p_i].

Your goal is to choose a direction for each lantern so each lantern is illuminated by at least one other lantern, or report that it is impossible.

Input

The first line contains one integer t (1 ≤ t ≤ 10000) — the number of test cases.

Each test case consists of two lines. The first line contains one integer n (2 ≤ n ≤ 3 ⋅ 10^5) — the number of lanterns.

The second line contains n integers p_1, p_2, ..., p_n (0 ≤ p_i ≤ n) — the power of the i-th lantern.

The sum of n over all test cases does not exceed 3 ⋅ 10^5.

Output

For each test case, print the answer as follows:

If it is possible to direct all lanterns so that each lantern is illuminated, print YES in the first line and a string of n characters L and/or R (the i-th character is L if the i-th lantern is turned to the left, otherwise this character is R) in the second line. If there are multiple answers, you may print any of them.

If there is no answer, simply print NO for that test case.

Example

Input


4
8
0 0 3 1 1 1 1 2
2
1 1
2
2 2
2
0 1


Output


YES
RRLLLLRL
YES
RL
YES
RL
NO

Solution (in CPP):

Solution:
/*                         _
                        _ooOoo_
                       o8888888o
                       88" . "88
                       (| -_- |)
                  .'  \\|     |//  `.
                 /  \\|||  :  |||//  \
                /  _||||| -:- |||||_  \
                |   | \\\  -  /'| |   |
                | \_|  `\`---'//  |_/ |
                \  .-\__ `-. -'__/-.  /
              ___`. .'  /--.--\  `. .'___
           ."" '<  `.___\_<|>_/___.' _> \"".
          | | :  `- \`. ;`. _/; .'/ /  .' ; |
          \  \ `-.   \_\_`. _.'_/_/  -' _.' /
===========`-.`___`-.__\ \___  /__.-'_.'_.-'================

                  Please give me AC.
*/
#include<bits/stdc++.h>
using namespace std;
#define mem(a) memset(a,0,sizeof(a))
#define INF (~(1<<31))
#define inf 0x3f3f3f3f3f3f3f3f
#define eps 1e-8
#define PI 3.141592653589793238462643383
#define lowbit(x) ((x)&(-x))
#define sqr(x) ((x)*(x))
#define pb(x) push_back(x)
#define pf(x) push_front(x)
#define all(v) (v).begin(),(v).end()
#define dbg(x,y) cout<<(x)<<" = "<<(y)<< endl;
#define per(i,a,b) for(int i = a; i >= b; --i)
#define rep(i,a,b) for(int i = a; i <= b; ++i)
#define fi first
#define se second
#define ls (rt<<1)
#define rs (rt<<1|1)
#define ll long long
#define int ll
typedef bitset<2010> bt;
typedef unsigned long long ull;
typedef complex<double> comp;
typedef pair<int,int> pii;
typedef pair<double,double> pdd;

const ll N = 6e5 + 7;
const ll M = 1e9 + 7;
const ll MAXN = 2e18 + 7;
const ll Mod = 998244353;
//const ll Mod = 1e9 + 7;

int _,i,j,k,n,m,p,s,T,t,l,r,o,u,v,w,x,y,z,ans,nex,sum,num,len,en,sx,sy,tx,ty,th,ma,mi,mod,cnt,la,op,res,flag,cas,bk,ret,mid,now,tmp,rt;
int a[N],b[N],c[N][20],dp[N];
char ch;
vector<int> g[N],h;
string s1,s2,s3,s4;

int rmq(int l,int r)
{
    if(l>r) return 0;
    int p=log(r-l+1)/log(2);
    return max(c[l][p],c[r-(1ll<<p)+1][p]);
}

signed main()
{
    int T = 1;
    scanf("%lld",&T);
    while(T--){
        scanf("%lld",&n);
        for(i = 1;i <= n;i++) scanf("%lld",a+i),c[i][0]=i+a[i];
        for(i = 1;i < 19;i++){
            for(j = 1;j <= n;j++){
                c[j][i]=max(c[j][i-1],c[j+(1ll<<(i-1))][i-1]);
            }
        }
        for(i = 1;i <= n;i++){
            dp[i]=dp[i-1];
            if(dp[i-1]>=i) dp[i]=max(dp[i],i+a[i]);
            p=lower_bound(dp,dp+i,i-a[i]-1)-dp;
            if(p!=i){
                dp[i]=max(dp[i],max(i-1,rmq(p+1,i-1)));
                //if(i==8) dbg(p,f(7,7))
            }
            dp[i]=min(n,dp[i]);
        }
        //for(i = 1;i <= n;i++) dbg(i,dp[i])
        if(dp[n]<n) printf("NO\n");
        else{
            printf("YES\n");
            s1="";p=n;
            for(i = n;i >= 1;i--){
                //dbg(i,p)
                if(dp[i-1]==p) s1+='R';
                else{
                    if(dp[i-1]>=i&&i+a[i]>=p) s1+='R';
                    else{
                        p=lower_bound(dp,dp+i,i-a[i]-1)-dp;
                        s1+='L';
                        for(--i;i > p;i--) s1+='R';
                        //dbg(i,p)
                        i++;
                    }
                    p=dp[i-1];
                }
            }
            reverse(all(s1));
            cout << s1 << endl;
        }
        for(i = 1;i <= n;i++) dp[i]=0;
    }
    return 0;
}