A sky scraper with 1000 floors has been built in the city of N. It has modern superfast elevators to help to travel from one floor to another. Each elevator has two doors, the front one and the back one. If one goes in through the front door, he goes out through the back one and vice versa. The elevator has two rails numbered with numbers 1 and 2. Rail 1 is located to the left of the entrance to the front door (or correspondingly, to the right of the entrance to the back door). Rail 2 is located opposite it, to the right of the entrance to the front door and to the left of the entrance to the back door. We know that each person in the city of N holds at a rail with the strongest hand. 

One day a VIP person visited the city and of course, he took a look at the skyscraper and took a ride in the elevator. We know the door through which he entered and the rail he was holding at. Now we need to determine as soon as possible whether he is left-handed or right-handed.

Input

The first line indicates the door through which the very important person entered the elevator. It contains "front" if the person enters the elevator through the front door and "back" if he entered the elevator through the back door. The second line contains integer a (1 ≤ a ≤ 2) which denotes the number of the rail at which the person was holding.

Output

Print character "R" if the VIP is right-handed or "L" if he is left-handed.

Examples

Input

front
1


Output

L
import java.util.*;
import java.io.*;
import java.math.BigInteger;

public class Main implements Runnable {		
	
	private void solve() throws IOException {	
		String s = nextToken();
		int n = nextInt();
		if (s.equals("front") && n == 1 || s.equals("back") && n == 2) {
			out.println("L");
		} else {
			out.println("R");
		}
	}
	
	public void run() {
		try {
			in = new BufferedReader(new FileReader(new File("input.txt")));
			out = new PrintWriter(new File("output.txt"));
			//in = new BufferedReader(new InputStreamReader(System.in));
			//out = new PrintWriter(System.out);			
			tokenizer = null;
			solve();
			out.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {	
		new Main().run();
	}
	
	private BufferedReader in;
	private PrintWriter out;
	private StringTokenizer tokenizer;
	
	private String nextToken() throws IOException {
		while (tokenizer == null || !tokenizer.hasMoreElements()) {
			tokenizer = new StringTokenizer(in.readLine());
		}
		return tokenizer.nextToken();
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}
	
	private long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}
	
	private double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}	
}
