The R1 company has recently bought a high rise building in the centre of Moscow for its main office. It's time to decorate the new office, and the first thing to do is to write the company's slogan above the main entrance to the building.

The slogan of the company consists of n characters, so the decorators hung a large banner, n meters wide and 1 meter high, divided into n equal squares. The first character of the slogan must be in the first square (the leftmost) of the poster, the second character must be in the second square, and so on.

Of course, the R1 programmers want to write the slogan on the poster themselves. To do this, they have a large (and a very heavy) ladder which was put exactly opposite the k-th square of the poster. To draw the i-th character of the slogan on the poster, you need to climb the ladder, standing in front of the i-th square of the poster. This action (along with climbing up and down the ladder) takes one hour for a painter. The painter is not allowed to draw characters in the adjacent squares when the ladder is in front of the i-th square because the uncomfortable position of the ladder may make the characters untidy. Besides, the programmers can move the ladder. In one hour, they can move the ladder either a meter to the right or a meter to the left.

Drawing characters and moving the ladder is very tiring, so the programmers want to finish the job in as little time as possible. Develop for them an optimal poster painting plan!


-----Input-----

The first line contains two integers, n and k (1 ≤ k ≤ n ≤ 100) — the number of characters in the slogan and the initial position of the ladder, correspondingly. The next line contains the slogan as n characters written without spaces. Each character of the slogan is either a large English letter, or digit, or one of the characters: '.', '!', ',', '?'.


-----Output-----

In t lines, print the actions the programmers need to make. In the i-th line print:  "LEFT" (without the quotes), if the i-th action was "move the ladder to the left";  "RIGHT" (without the quotes), if the i-th action was "move the ladder to the right";  "PRINT x" (without the quotes), if the i-th action was to "go up the ladder, paint character x, go down the ladder". 

The painting time (variable t) must be minimum possible. If there are multiple optimal painting plans, you can print any of them.


-----Examples-----
Input
2 2
R1

Output
PRINT 1
LEFT
PRINT R

Input
2 1
R1

Output
PRINT R
RIGHT
PRINT 1

Input
6 4
GO?GO!

Output
RIGHT
RIGHT
PRINT !
LEFT
PRINT O
LEFT
PRINT G
LEFT
PRINT ?
LEFT
PRINT O
LEFT
PRINT G



-----Note-----

Note that the ladder cannot be shifted by less than one meter. The ladder can only stand in front of some square of the poster. For example, you cannot shift a ladder by half a meter and position it between two squares. Then go up and paint the first character and the second character.

Difficulty: interview

Starter code:

Solutions:
n, k = map(int, input().split())
s = input()

left = k - 1
right = n - k
if left < right:
    print('LEFT\n' * left, end = '')
    for i in range(len(s) - 1):
        c = s[i]
        print('PRINT', c)
        print('RIGHT')
    print('PRINT', s[-1])
else:
    print('RIGHT\n' * right, end = '')
    for i in range(len(s) - 1):
        c = s[-i - 1]
        print('PRINT', c)
        print('LEFT')
    print('PRINT', s[0])    

n, i = list(map(int, input().split()))
lozung = input()

if i > n//2:
    while(i<n):
        print('RIGHT')
        i+=1
    while(i > 0):
        print('PRINT', lozung[i-1])
        i-=1
        if i != 0:
            print('LEFT')
else:
    while(i > 1):
        print('LEFT')
        i-=1
    while(i <= n):
        print('PRINT', lozung[i-1])
        i+=1
        if i != n+1:
            print('RIGHT')



n, k = list(map(int, input().split()))
s = input()
left = k - 1
right = n - k
if left > right:
    for i in range(n - k):
        print("RIGHT")
    for j in range(n - 1, 0, -1):
        print("PRINT " + s[j])
        print("LEFT")
    print("PRINT " + s[0])
else:
    for i in range(k - 1):
        print("LEFT")
    for j in range(n -1):
        print("PRINT " + s[j])
        print("RIGHT")
    print("PRINT " + s[n - 1])


def main():
	n, k = map(int, input().split())
	s = input()
	if k - 1 <= n - k:
		for i in range(k - 1):
			print("LEFT")
		for i in range(n - 1):
			print("PRINT", s[i])
			print("RIGHT")
		print("PRINT", s[n - 1])
	else:
		for i in range(n - k):
			print("RIGHT")
		for i in range(n - 1, 0, -1):
			print("PRINT", s[i])
			print("LEFT")
		print("PRINT", s[0])

main()

n, k = map(int, input().split())
s = list(input().strip())
if k <= n // 2:
    for i in range(k - 1):
        print('LEFT')
    for i in range(n - 1):
        print('PRINT', s[i])
        print('RIGHT')
    print('PRINT', s[n - 1])
else:
    for i in range(n - k):
        print('RIGHT')
    for i in range(1, n):
        print('PRINT', s[-i])
        print('LEFT')
    print('PRINT', s[0])

import sys
n,k=list(map(int,input().split()))

s=input()

k-=1

Ans=""

if((k+1)>n//2):
    for j in range(k,n-1):
        Ans+="PRINT "+s[j]+"\n"
        Ans+="RIGHT\n"
    Ans+="PRINT "+s[n-1]+"\n"
    ind=n-1
    if(k>0):
        while(ind>=k):
            Ans+="LEFT\n"
            ind-=1
        for i in range(ind,0,-1):
            Ans+="PRINT "+s[i]+"\n"
            Ans+="LEFT\n"
        Ans+="PRINT "+s[0]+"\n"

else:
    for j in range(k,0,-1):
        Ans+="PRINT "+s[j]+"\n"
        Ans+="LEFT\n"
    Ans+="PRINT "+s[0]+"\n"
    ind=0
    if(k<n-1):
        while(ind<=k):
            Ans+="RIGHT\n"
            ind+=1
        for i in range(ind,n-1):
            Ans+="PRINT "+s[i]+"\n"
            Ans+="RIGHT\n"
        Ans+="PRINT "+s[n-1]+"\n"
sys.stdout.write(Ans)


n, k = map(int, input().split())
s = input().strip()
if n - k > k - 1:
    for i in range(k - 1):
        print("LEFT")
    for i in range(n):
        print("PRINT", s[i])
        if i < n - 1:
            print("RIGHT")
else:
    for i in range(n - k):
        print("RIGHT")
    for i in range(n):
        print("PRINT", s[n - i - 1])
        if i < n - 1:
            print("LEFT")

n, k = list(map(int, input().split()))
line = input()
if k <= n // 2:
   for i in range(k - 1):
      print('LEFT')
   print('PRINT', line[0])
   for i in range(n - 1):
      print('RIGHT')
      print('PRINT', line[i + 1])
else:
   for i in range(n - k):
      print('RIGHT')
   print('PRINT', line[-1])
   for i in range(n - 1):
      print('LEFT')
      print('PRINT', line[n - i - 2])


[n, k], slogan = list(map(int, input().split())), input().strip()
if 2 * k < n + 1:
    for x in range(k - 2, -1, -1):
        print('LEFT')
        print('PRINT', slogan[x])
    for x in range(k - 1):
        print('RIGHT')
    print('PRINT', slogan[k - 1])
    for x in range(k, n):
        print('RIGHT')
        print('PRINT', slogan[x])
else:
    for x in range(k, n):
        print('RIGHT')
        print('PRINT', slogan[x])
    for x in range(n - k):
        print('LEFT')
    print('PRINT', slogan[k - 1])
    for x in range(k - 2, -1, -1):
        print('LEFT')
        print('PRINT', slogan[x])


n, k = list(map(int, input().split()))
s = input().strip()
if k - 1 > n - k:
    for i in range(k, n):
        print("RIGHT")
    print("PRINT", s[n - 1])
    for i in range(n - 1, 0, -1):
        print("LEFT")
        print("PRINT", s[i - 1])
else:
    for i in range(k - 1):
        print("LEFT")
    print("PRINT", s[0])
    for i in range(1, n):
        print("RIGHT")
        print("PRINT", s[i])


n, k = map(int, input().split())
s = input()
if k - 1 == 0:
    for i in range(n - 1):
        print("PRINT", s[i])
        print("RIGHT")
    print("PRINT", s[-1])
elif k == n:
    for i in range(n - 1, 0, -1):
        print("PRINT", s[i])
        print("LEFT")
    print("PRINT", s[0])
elif n - k + 1 <= k - 1:
    for i in range(k, n):
        print("RIGHT")
    for i in range(n - 1, 0, -1):
        print("PRINT", s[i])
        print("LEFT")
    print("PRINT", s[0])
else:
    for i in range(k - 1, 0, -1):
        print("LEFT")
    for i in range(n - 1):
        print("PRINT", s[i])
        print("RIGHT")
    print("PRINT", s[-1])    

n ,k = map(int, input().split())
s = input()
if k - 1 >= n - k:
    for i in range(n - k):
        print('RIGHT')
    for j in range(n - 1):
        print( 'PRINT ' + s[n - j - 1])
        print('LEFT')
    print('PRINT ' + s[0])
else:
    for i in range(k - 1):
        print('LEFT')
    for j in range(n - 1):
        print( 'PRINT ' + s[j])
        print('RIGHT')
    print('PRINT ' + s[n - 1])

n, k = map(int, input().split())
S = input()
k -= 1
if k >= (n - 1) / 2:
    print('PRINT', S[k])
    for i in range(k+1, n):
        print('RIGHT')
        print('PRINT', S[i])
    for i in range(k+1, n):
        print('LEFT')
    for i in range(k-1, -1, -1):
        print('LEFT')
        print('PRINT', S[i])
else:
    print('PRINT', S[k])   
    for i in range(k-1, -1, -1):
        print('LEFT')
        print('PRINT', S[i])
    for i in range(k-1, -1, -1):
        print('RIGHT')
    for i in range(k+1, n):
        print('RIGHT')
        print('PRINT', S[i])

n,k=list(map(int,input('').split()))                   
lozung=list(input())
if n-k<k:
    for i in range(k,n):
        print('RIGHT')
    for i in reversed(list(range(0,n))):
        print('PRINT ',lozung[i])
        if i!=0:print('LEFT')
else:
#    print('2')
    for i in reversed(list(range(0,k-1))):
        print('LEFT')
    for i in range(n):
        print('PRINT ',lozung[i])
        if i!=n-1:print('RIGHT')
                



a=input().split()
lozung=input()
n=int(a[0])
k=int(a[1])
tol=k-1
tor=n-k
if tol>tor:
    for i in range(tor):
        print('RIGHT')
    for i in range(1,n):
        print('PRINT '+lozung[n-i])
        print('LEFT')
    print('PRINT '+lozung[0])
else:
    for i in range(tol):
        print('LEFT')
    for i in range(n-1):
        print('PRINT '+lozung[i])
        print('RIGHT')
    print('PRINT '+lozung[n-1])


n, k = list(map(int, input().split()))
line = input()
j = k - 1
if n - k > k - 1:
    for i in range(k - 1):
        print("LEFT")
        j -= 1
    add = "RIGHT"
else:
    for i in range(n - k):
        print("RIGHT")
        j += 1
    add = "LEFT"
if j == 0:
    for i in range(n - 1):
        print("PRINT", line[i])
        print(add)
    print("PRINT", line[-1])
else:
    for i in range(j, 0, -1):
        print("PRINT", line[i])
        print(add)
    print("PRINT", line[0])


n, k = list(map(int, input().split()))
s = input()

if k <= n / 2:
    for i in range(k, 1, -1):
        print("PRINT", s[i - 1])
        print("LEFT")
    print("PRINT", s[0])
    for i in range(k - 1):
        print("RIGHT")
    for i in range(k, n):
        print("RIGHT")
        print("PRINT", s[i])
else:
    for i in range(k, n):
        print("PRINT", s[i - 1])
        print("RIGHT")
    print("PRINT", s[-1])
    for i in range(n - k):
        print("LEFT")
    for i in range(k - 1, 0, -1):
        print("LEFT")
        print("PRINT", s[i - 1])


n, k = map(int, input().split())
text = input().strip()

if k - 1 < n - k:
    for i in range(k - 1, 0, -1):
        print('LEFT')
    for i in range(n - 1):
        print('PRINT %s' % text[i])
        print('RIGHT')
    print('PRINT %s' % text[-1])
else:
    for i in range(k - 1, n - 1):
        print('RIGHT')
    for i in range(n - 1, 0, -1):
        print('PRINT %s' % text[i])
        print('LEFT')
    print('PRINT %s' % text[0])

def ans1(n, k, s):
    ans = []
    for i in range(k - 1, n - 1):
        ans.append("PRINT " + s[i])
        ans.append("RIGHT")
    ans.append("PRINT " + s[n - 1])
    for i in range(k, n + 1):
        ans.append("LEFT")
    for i in range(k - 2, 0, -1):
        ans.append("PRINT " + s[i])
        ans.append("LEFT")
    ans.append("PRINT " + s[0])
    return ans

def ans2(n, k, s):
    ans = []
    for i in range(k - 1, 0, -1):
        ans.append("PRINT " + s[i])
        ans.append("LEFT")
    ans.append("PRINT " + s[0])
    for i in range(k):
        ans.append("RIGHT")
    for i in range(k, n - 1):
        ans.append("PRINT " + s[i])
        ans.append("RIGHT")
    ans.append("PRINT " + s[n - 1])
    return ans

def main():
    n, k = map(int, input().split())
    s = input()
    if n == k:
        for i in range(n - 1, 0, -1):
            print("PRINT", s[i])
            print("LEFT")
        print("PRINT", s[0])
    elif k == 1:
        for i in range(n - 1):
            print("PRINT", s[i])
            print("RIGHT")
        print("PRINT", s[n - 1])
    else:
        a1 = ans1(n, k, s)
        a2 = ans2(n, k, s)
        if len(a1) < len(a2):
            for line in a1:
                print(line)
        else:
            for line in a2:
                print(line)
main()

n, k = map(int, input().split());
s = input();
if 2 * k <= n:
    for i in range(k - 1): print('LEFT');
    way = 'RIGHT'
    print('PRINT', s[0])
    for i in range(1, len(s)):
        print(way);
        print('PRINT', s[i])
else:
    for i in range(n - k ): print('RIGHT') ;
    way = 'LEFT'
    s = s[::-1];
    print('PRINT', s[0])
    for i in range(1, len(s)):
        print(way);
        print('PRINT', s[i]) 

n,k=map(int,input().split())
los=input()
if n==1:
    print('PRINT',los,sep=' ')
else:
    if k>n/2 and k!=n and k!=1:
        for i in range(n-k):
            print('RIGHT')
        for i in range(n):
            print('PRINT',los[n-i-1],sep=' ')
            if i!=n-1:
                print('LEFT')
    if k<=n/2 and k!=n and k!=1:
        for i in range(k-1):
            print('LEFT')
        for i in range(n):
            print('PRINT',los[i],sep=' ')
            if i!=n-1:
                print('RIGHT')
    if k==1:
        for i in range(n):
            print('PRINT',los[i],sep=' ')
            if i!=n-1:
                print('RIGHT')
    if k==n:
        for i in range(n):
            print('PRINT',los[n-i-1],sep=' ')
            if i!=n-1:
                print('LEFT')



n,k=list(map(int,input().split()))

x=input()
t=min(n-k,k-1)

ans=""
if (n==1):
    ans="PRINT "+x

else:

    if (t==n-k):
        if (t==0):
            j=n-1
            while (j>0):
                ans+="PRINT "+x[j]+"\n"+"LEFT\n"
                j-=1

            ans+="PRINT "+x[0]+"\n"
        else:
            ans=t*"RIGHT\n"
            j=n-1
            while(j>0):
                ans+="PRINT "+x[j]+"\n"+"LEFT\n"
                j-=1

            ans+="PRINT "+x[0]+"\n"

    else:
        if (t==0):
            j=0
            while (j<n-1):
                ans+="PRINT "+x[j]+"\n"+"RIGHT\n"
                j+=1
            ans+="PRINT "+x[n-1]+"\n"
        else:
            ans=t*"LEFT\n"
            j=0
            while (j<n-1):
                ans+="PRINT "+x[j]+"\n"+"RIGHT\n"
                j+=1

            ans+="PRINT "+x[n-1]+"\n"

print (ans)
                
            
            

            
                
        
    


n,k=list(map(int,input().split()))
s=input().strip()
if n-k<k-1:
    for i in range(n-k):
        print('RIGHT')
    for i in reversed(list(range(1,n))):
        print('PRINT',s[i])
        print('LEFT')
    print('PRINT',s[0])
else:
    for i in range(k-1):
        print('LEFT')
    for i in range(n-1):
        print('PRINT',s[i])
        print('RIGHT')
    print('PRINT',s[n-1])


n, k = list(map(int, input().split()));
st=input();
if (2*k)<= n:
    for i in range(k-1): print('LEFT');
    naprav='RIGHT'
else:
    for i in range(n-k): print('RIGHT') ;
    naprav='LEFT'
    st=st[::-1];
print('PRINT', st[0])
for i in range(1, len(st)):
    print(naprav);
    print('PRINT',st[i])


N,K = list(map(int, input().split()))
S = input()
a = K-1
b = N-K
if a ==0:
    a = 1000
if b == 0:
    b =1000
pos = K-1
printed = 1
print('PRINT '+str(S[pos]))
if a<=b:
    while pos!=0:
      print('LEFT')
      pos-=1
      print('PRINT '+str(S[pos]))
      printed+=1
    if printed !=N:
        while pos!=K-1:
            print('RIGHT')
            pos+=1
        while pos!=N-1:
            print('RIGHT')
            pos+=1
            print('PRINT '+str(S[pos]))
            printed+=1
elif a>b:
    while pos!=N-1:
        print('RIGHT')
        pos+=1
        print('PRINT '+str(S[pos]))
        printed+=1
    if printed !=N:
        while pos!=K-1:
            print('LEFT')
            pos-=1
        while pos!=0:
          print('LEFT')
          pos-=1
          print('PRINT '+str(S[pos]))
          printed+=1