Santa Claus is the first who came to the Christmas Olympiad, and he is going to be the first to take his place at a desk! In the classroom there are n lanes of m desks each, and there are two working places at each of the desks. The lanes are numbered from 1 to n from the left to the right, the desks in a lane are numbered from 1 to m starting from the blackboard. Note that the lanes go perpendicularly to the blackboard, not along it (see picture).

The organizers numbered all the working places from 1 to 2nm. The places are numbered by lanes (i. e. all the places of the first lane go first, then all the places of the second lane, and so on), in a lane the places are numbered starting from the nearest to the blackboard (i. e. from the first desk in the lane), at each desk, the place on the left is numbered before the place on the right. [Image] The picture illustrates the first and the second samples. 

Santa Clause knows that his place has number k. Help him to determine at which lane at which desk he should sit, and whether his place is on the left or on the right!


-----Input-----

The only line contains three integers n, m and k (1 ≤ n, m ≤ 10 000, 1 ≤ k ≤ 2nm) — the number of lanes, the number of desks in each lane and the number of Santa Claus' place.


-----Output-----

Print two integers: the number of lane r, the number of desk d, and a character s, which stands for the side of the desk Santa Claus. The character s should be "L", if Santa Clause should sit on the left, and "R" if his place is on the right.


-----Examples-----
Input
4 3 9

Output
2 2 L

Input
4 3 24

Output
4 3 R

Input
2 4 4

Output
1 2 R



-----Note-----

The first and the second samples are shown on the picture. The green place corresponds to Santa Claus' place in the first example, the blue place corresponds to Santa Claus' place in the second example.

In the third sample there are two lanes with four desks in each, and Santa Claus has the fourth place. Thus, his place is in the first lane at the second desk on the right.

Difficulty: interview

Starter code:

Solutions:
n, m, k = list(map(int, input().split()))
print((k - 1) // (2 * m) + 1, end=" ")
print((k - 1) % (2 * m) // 2 + 1, end=" ")
if ((k - 1) % (2 * m) % 2 == 0):
    print("L")
else:
    print("R")


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

k -= 1

print(k // (2 * m) + 1, (k % (2 * m)) // 2 + 1, 'L' if k % 2 == 0 else 'R')

n, m, k = map(int, input().split()) 
k -= 1
print(k // (m + m) + 1, (k % (m + m)) // 2 + 1, 'LR'[k % 2])

n, m, k = list(map(int, input().split()))
rad = (k - 1) // (2 * m) + 1
parta = ((k - 1) % (2 * m)) // 2 + 1
if (k % 2) == 0:
    print(rad, parta, "R")
else:
    print(rad, parta, "L")


import math
n, m, k = list(map(int, input().split()))
if k % 2 == 1:
    pos = "L"
else:
    pos = "R"
r = math.ceil(k / (2 * m))
k -= (r - 1) * 2 * m
f = math.ceil(k / 2)
print(r, f, pos)


n, m, k = map(int, input().split()) #4, 3
# # # #
# # # #
# # # #

pos = ""
if k % 2 == 0:
    pos = "R"
else:
    pos = "L"
rad = (k - 1) // (2 * m) + 1
parta = ((k - (rad - 1) * 2 * m) + 1) // 2
print(rad, parta, pos)

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

pl = ''
if k % 2 == 0:
    pl = 'R'
else:
    pl = 'L'

k = k // 2 + k % 2
part = k % m
rad = k // m + 1
if k % m == 0:
    rad -= 1
if part == 0:
    part = m

print(rad, part, pl)

def get_place(rows, dpr, k):  # n=rows; m=dpr
    k -= 1
    dn = k // 2
    return (dn // dpr + 1, dn % dpr + 1, 'LR'[k % 2])

def m():
    print(*get_place(*list(map(int, input().split(' ')))))

def __starting_point():
    m()


__starting_point()

r,p,n=map(int,input().split())
print((n-1)//(p*2)+1,(n-1)%(p*2)//2+1,sep=' ',end=' ')
if n%2==0:print('R')
else: print('L')


n, m , k = list(map(int, input().split()))
r = (k - 1) // (2 * m) + 1
d = ((k - 1) % (2 * m)) // 2 + 1
if k % 2 == 0:
    s = 'R'
else:
    s = 'L'
print(r, d, s)


q,w,e=list(map(int,input().split()))
if e%2==1:
    c='L'
else:
    c='R'
e=(e+1)//2
x=e%w
if x==0:
    x=w
if e%w==0:
    z=e//w
else:
    z=e//w+1
print(z,x,c)


from math import ceil
n,m,k=[int(i) for i in input().split()]
a=k%(2*m)
if a==0:
    a=2*m

print(ceil(k/(2*m)),(a+1)//2,'RL'[k%2])


N, M, K = list(map(int, input().split()))
row_size = 2 * M
K -= 1
row = K // row_size
K %= row_size
side = 'L' if K % 2 == 0 else 'R'
d = K // 2

print(row + 1, d + 1, side)


n,m,k =map(int,input().split())
per1 = (k-1)//(2*m)
print(1+per1, end = ' ')
per2 = k - per1* (2*m)
print(1 + (per2-1)//2, end = ' ')
if k % 2 == 0:
    print('R')
else:
    print('L')

n, m, k = map(int, input().split())
row = (k + m * 2 - 1) // (m * 2)
table = (k - ((m * 2) * (row - 1) + 1)) // 2 + 1
place = ''
if k % 2 == 0:
    place = 'R'
else:
    place = 'L'
print(row, table, place)

n, m, k = map(int, input().split())
print((k - 1) // (2*m) + 1, end=" ")
print((k - 1) % (2*m) // 2 + 1, end=" ")
if k % 2 == 1:
    print("L")
else:
    print("R")


def kek(k):
    if k % 2:
        return 'L'
    else:
        return 'R'
n, m, k = list(map(int, input().split()))
num_of_parta = (k - 1) // 2
r = num_of_parta // m + 1
d = num_of_parta % m + 1
s = kek(k)
print(r, d, s)


def r():
	return list(map(int, input().split()))
n, m, k = r()
a = (k + 2 * m - 1) // (2 * m)
k -= (a - 1) * 2 * m
b = (k + 1) // 2
c = 'R' if k % 2 == 0 else 'L'
print(a, b, c)

n,m,k=[int(i) for i in input().split()]
ryad=k//(2*m)+1
if k%(2*m)==0:
    ryad-=1
parta=(k-2*m*(ryad-1))//2+k%2
if k%2==0:
    mesto='R'
else:
    mesto='L'
print(ryad,parta,mesto)

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

r = -(-k // (2*m))
lr = ['R', 'L'][k%2]
pos = k % (2*m) if k % (2*m) else 2*m
d = (pos+1) // 2

print(r, d, lr)


from math import *

n, m, k = [int(x) for x in input().split()]
tmp1 = ceil(k / (2 * m))
tmp2 = k - (tmp1 - 1) * 2 * m
tmp3 = ceil(tmp2 / 2)
if k % 2 == 0:
    print(tmp1, tmp3, 'R')
else:
    print(tmp1, tmp3, 'L')

import math, sys

fin = sys.stdin
fout = sys.stdout
n, m, x = list(map(int, fin.readline().split()))
r = math.ceil(x / (m * 2))
d = math.ceil((x - ((r - 1) * (m * 2))) / 2)
s = ''
if x % 2 == 1:
    s = 'L'
else:
    s = 'R'
fout.write(str(r) + ' ' + str(d) + ' ' + str(s))


n, m, k = list(map(int, input().split()))
k2 = ((k - 1) // 2 + 1)
ans2  =k2 % m
if ans2 == 0:
    ans2 = m
print((k2 - 1) // m + 1, ans2, end=" ")
if k % 2 == 1:
    print("L")
else:
    print("R")


n, m, k = map(int, input().split())
print((k - 1) // (2 * m) + 1, ((k - 1) % (2 * m) + 2) // 2, "R" if ((k - 1) % (2 * m) + 1) % 2 == 0 else "L")

n, m, k = map(int, input().split())
t1 = 2 * m
ps1 = (k - 1) // t1 + 1
ps2 = (k % t1)
if ps2 == 0:
    ps2 = 2 * m
print(ps1, (ps2 + ps2 % 2) // 2, ("L" if ps2 % 2 == 1 else "R"))