City Folding

아직 제출이 없습니다시간 제한0.1초메모리 제한1024 MB

문제

Joe’s bedroom is so dirty that the germs have developed civilization! They have communities and cities everywhere, and the bedroom is their world: Joe’s shoes are giant caves, his fishbowl is an ocean, his moldy pizza boxes are jungles, etc.

One of the biggest germ metropolis, Long City, is built on a long strip of paper left on the floor. It’s an awkward city layout, so the inhabitants decided to go three-dimensional: they will fold the strip several times and turn it into a stack! This way, transportation across the city will be much easier, by moving up and down across layers.

Specifically, the germs will repeat the following procedure NN times:

  • find the exact middle of the current strip;
  • then either fold the left side on top of the right side, or vice versa.

The result will be a stack of 2N2^N paper layers.

Amelia is a powerful and wealthy amoeba who inhabits Long City, and like everyone else, she’s looking forward to the folding. However, she has a particular preference: after the folding process is complete, she would like her home to end up in the HH-th layer from the ground, because HH is her lucky number. To achieve this, Amelia can influence the folding process: at each of the NN steps, she can decide whether to fold the left side over the right side, or vice versa.

Now she needs your help to decide the exact sequence of folds to perform. According to Amelia, if you were to divide Long City into 2N2^N sections of equal length, her home would be on the PP-th section from left to right. Given NN, PP, and HH, find the answer she wants.

The figure below illustrates the first sample. Amelia’s home is on the fourth section of the strip, and after the three shown folds it ends up in the seventh layer from the ground.

입력

The input consists of a single line that contains three integers NN (1N601 ≤ N ≤ 60), PP and HH (1P,H2N1 ≤ P, H ≤ 2^N), indicating respectively the number of folds, the initial position of Amelia’s home on the strip, and the desired final height in the stack.

출력

Output a single line with a string of length NN such that its i-th character indicates how to perform the ii-th fold. The uppercase letter “L” means folding the left side on top of the right side, while the uppercase letter “R” means folding the right side on top of the left side. It is guaranteed that a unique solution exists.