import java.util.Scanner;

public class q474A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String c = (s.next());
        String msg = s.next();
        String l1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] arr = msg.toCharArray();
        if (c.equals("R")) {
            for (int i = 0; i < msg.length(); i++) {
                char temp = msg.charAt(i);
                int ind = l1.indexOf(temp) - 1;
                arr[i] = l1.charAt(ind);
            }

        } else {
            for (int i = 0; i < msg.length(); i++) {
                char temp = msg.charAt(i);
                int ind = l1.indexOf(temp) + 1;
                arr[i] = l1.charAt(ind);
            }

        }
        for(int i=0;i<arr.length;i++){
            System.out.print(arr[i]);
        }
        System.out.println();
    }
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.StringTokenizer;

/*07:05:45PM

 String x =sc.next();
 char inp [] = x.toCharArray();
 SimpleDateFormat displayFormat = new SimpleDateFormat("HH:mm");
 SimpleDateFormat parseFormat = new SimpleDateFormat("hh:mm a");
 Date date = parseFormat.parse(x.substring(0, 5)+" "+x.substring(8, 10));
 System.out.println(displayFormat.format(date)+":"+x.substring(6, 8));
 */

public class Main {
	;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String c = sc.nextLine();
		String s = sc.nextLine();
		String ref = "qwertyuiopasdfghjkl;zxcvbnm,./";
		if (c.equals("L")) {
			for (int i = 0; i < s.length(); i++) {
				char target = s.charAt(i);
				for (int j = 0; j < ref.length(); j++) {
					if (target == ref.charAt(j)) {
						System.out.print(ref.charAt(j + 1));
						break;
					}
				}
			}

		} else {
			for (int i = 0; i < s.length(); i++) {
				char target = s.charAt(i);
				for (int j = 0; j < ref.length(); j++) {
					if (target == ref.charAt(j)) {

						System.out.print(ref.charAt(j- 1));
						break;
					}
				}
			}

		}
	}

}

class Triple {
	long x, y, z;

	public Triple(long a, long b, long c) {
		x = a;
		y = b;
		z = c;
	}
}

class Pair implements Comparable<Pair> {
	String t;
	String a;

	Pair(String f, String b) {
		t = f;
		a = b;
	}

	@Override
	public int compareTo(Pair o) {
		// TODO Auto-generated method stub
		return a.compareTo(o.a) == 0 ? t.compareTo(o.t) : a.compareTo(o.a);
	}

}

class Scanner {
	StringTokenizer st;
	BufferedReader br;

	public Scanner(InputStream s) {
		br = new BufferedReader(new InputStreamReader(s));
	}

	public String next() throws IOException {
		while (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(br.readLine());
		return st.nextToken();
	}

	public int nextInt() throws IOException {
		return Integer.parseInt(next());
	}

	public long nextLong() throws IOException {
		return Long.parseLong(next());
	}

	public String nextLine() throws IOException {
		return br.readLine();
	}

	public double nextDouble() throws IOException {
		String x = next();
		StringBuilder sb = new StringBuilder("0");
		double res = 0, f = 1;
		boolean dec = false, neg = false;
		int start = 0;
		if (x.charAt(0) == '-') {
			neg = true;
			start++;
		}
		for (int i = start; i < x.length(); i++)
			if (x.charAt(i) == '.') {
				res = Long.parseLong(sb.toString());
				sb = new StringBuilder("0");
				dec = true;
			} else {
				sb.append(x.charAt(i));
				if (dec)
					f *= 10;
			}
		res += Long.parseLong(sb.toString()) / f;
		return res * (neg ? -1 : 1);
	}

	public boolean ready() throws IOException {
		return br.ready();
	}

}

import java.util.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    String alphabet ="qwertyuiopasdfghjkl;zxcvbnm,./";
	    String ch = sc.next();
	    String str = sc.next();
	    String s = "";
	    if(ch.equals("R")){
	        for(int i = 0;i < str.length();i++){
	            int index = alphabet.indexOf(str.charAt(i));

	            s += alphabet.charAt(index-1);
	        }
	    }else {
	    	for(int i = 0;i < str.length();i++){
	            int index = alphabet.indexOf(str.charAt(i));

	            s += alphabet.charAt(index+1);
	        }
	    }
	    System.out.println(s);
	}

}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Me
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, InputReader in, PrintWriter out) {

            String letras = in.next();
            String word = in.next();

            char[] k = {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};
            if (letras.charAt(0) == 'R') {
                for (int i = 0; i < word.length(); i++) {
                    for (int j = 0; j < k.length; j++) {
                        if (k[j] == word.charAt(i)) {
                            out.print(k[j - 1]);
                            break;
                        }
                    }
                }
            } else {
                for (int i = 0; i < word.length(); i++) {
                    for (int j = 0; j < k.length; j++) {
                        if (k[j] == word.charAt(i)) {
                            out.print(k[j + 1]);
                            break;
                        }
                    }
                }
            }
            out.close();
        }

    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

    }
}

import java.util.Scanner;

public class Main
{
  public static void main (String[]args)
  {
    Scanner sc = new Scanner (System.in);
    char c1[] = { 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p' };
    char c2[] = { 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';' };
    char c3[] = { 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/' };

    char w = sc.next().charAt (0);
    char[] s = sc.next().toCharArray ();
    int sl = s.length;

    if (w == 'L')
      {
	for (int i = 0; i < sl; i++)
	  {
	    for (int j = 9; j >= 0; j--)
	      {
		if (s[i] == c1[j])
		  {
		    s[i] = c1[j + 1];
		  }
		else if (s[i] == c2[j])
		  {
		    s[i] = c2[j + 1];
		  }
		else if (s[i] == c3[j])
		  {
		    s[i] = c3[j + 1];
		  }
	      }
	  }
      }
    else if (w == 'R')
      {
	for (int i = 0; i < sl; i++)
	  {
	    for (int j = 0; j < 10; j++)
	      {
		if (s[i] == c1[j])
		  {
		    s[i] = c1[j - 1];
		  }
		else if (s[i] == c2[j])
		  {
		    s[i] = c2[j - 1];
		  }
		else if (s[i] == c3[j])
		  {
		    s[i] = c3[j - 1];
		  }
	      }
	  }
      }
    String d = new String (s);
    System.out.println (d);

  }
}

import java.util.Arrays;
import java.util.Scanner;

public class A474 {
    public static void main(String [] args) {
        Scanner sc = new Scanner(System.in);

        String sequence = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char direction = sc.next().charAt(0);
        String phrase = sc.next();

        char [] sequenceParts = sequence.toCharArray();
        char [] phraseParts = phrase.toCharArray();
        char [] phrasePartsUpdate = new char[phraseParts.length];

        if (direction == 'R') {
            for (int i = 0; i < phraseParts.length;i++) {
                for (int j = 0;j < sequenceParts.length;j++) {
                    if (phraseParts[i] == sequenceParts[j] && j > 0) {
                        phrasePartsUpdate[i] = sequenceParts[j - 1];
                        break;
                    } else if (phraseParts[i] == sequenceParts[j] && j == 0) {
                        phrasePartsUpdate[i] = sequenceParts[sequenceParts.length - 1];
                        break;
                    }
                }
            }
        } else if (direction == 'L') {
            for (int i = 0; i < phraseParts.length; i++) {
                for (int j = 0; j < sequenceParts.length; j++) {
                    if (phraseParts[i] == sequenceParts[j] && j < sequenceParts.length - 1) {
                        phrasePartsUpdate[i] = sequenceParts[j + 1];
                        break;
                    } else if (phraseParts[i] == sequenceParts[j] && j == sequenceParts.length - 1) {
                        phrasePartsUpdate[i] = sequenceParts[0];
                        break;
                    }
                }
            }
        }
        String endResult = String.valueOf(phrasePartsUpdate);
        System.out.println(endResult);
    }
}

import java.util.*;

public class ProblemSolving {

    public static void main(String[] args) {

        Scanner scan=new Scanner(System.in);
        String direction = scan.next();
        String input = scan.next();
        String keyboard = "qwertyuiop\n" + "asdfghjkl;\n" + "zxcvbnm,./";

        for(int i=0;i<input.length();i++){
            if(direction.equals("R")){
                System.out.print(keyboard.charAt(keyboard.indexOf(input.charAt(i))- 1));
            }else{
                System.out.print(keyboard.charAt(keyboard.indexOf(input.charAt(i))+ 1));
            }
        }
    }

}

import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

public class JavaApplication35 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
       String a=sc.next();

       String b=sc.next();

           for(int i=0; i<b.length();i++){
               if(a.charAt(0)!='R'){
                   switch(b.charAt(i)){
                       case 'q':
                           out.print('w');
                           break;
                       case 'w':
                           out.print('e');
                           break;
                       case 'e':
                           out.print('r');
                           break;
                       case 'r':
                           out.print('t');
                           break;
                       case 't':
                           out.print('y');
                           break;
                       case 'y':
                           out.print('u');
                           break;
                       case 'u':
                           out.print('i');
                           break;
                       case 'i':
                           out.print('o');
                           break;
                       case 'o':
                           out.print('p');
                           break;
                       case 'p':
                           out.print('q');
                           break;
                       case 'a':
                           out.print('s');
                           break;
                       case 's':
                           out.print('d');
                           break;
                       case 'd':
                           out.print('f');
                           break;
                       case 'f':
                           out.print('g');
                           break;
                       case 'g':
                           out.print('h');
                           break;
                       case 'h':
                           out.print('j');
                           break;
                       case 'j':
                           out.print('k');
                           break;
                       case 'k':
                           out.print('l');
                           break;
                       case 'l':
                           out.print(';');
                           break;
                       case ';':
                           out.print('a');
                           break;
                       case 'z':
                           out.print('x');
                           break;
                       case 'x':
                           out.print('c');
                           break;
                       case 'c':
                           out.print('v');
                           break;
                       case 'v':
                           out.print('b');
                           break;
                       case 'b':
                           out.print('n');
                           break;
                       case 'n':
                           out.print('m');
                           break;
                       case 'm':
                           out.print(',');
                           break;
                       case ',':
                           out.print('.');
                           break;
                       case '.':
                           out.print('/');
                           break;

                   }
               }
               else{
                   switch(b.charAt(i)){
                       case 'q':
                           out.print('p');
                           break;
                       case 'w':
                           out.print('q');
                           break;
                       case 'e':
                           out.print('w');
                           break;
                       case 'r':
                           out.print('e');
                           break;
                       case 't':
                           out.print('r');
                           break;
                       case 'y':
                           out.print('t');
                           break;
                       case 'u':
                           out.print('y');
                           break;
                       case 'i':
                           out.print('u');
                           break;
                       case 'o':
                           out.print('i');
                           break;
                       case 'p':
                           out.print('o');
                           break;
                       case 'a':
                           out.print(';');
                           break;
                       case 's':
                           out.print('a');
                           break;
                       case 'd':
                           out.print('s');
                           break;
                       case 'f':
                           out.print('d');
                           break;
                       case 'g':
                           out.print('f');
                           break;
                       case 'h':
                           out.print('g');
                           break;
                       case 'j':
                           out.print('h');
                           break;
                       case 'k':
                           out.print('j');
                           break;
                       case 'l':
                           out.print('k');
                           break;
                       case ';':
                           out.print('l');
                           break;
                       case 'z':
                           out.print('.');
                           break;
                       case 'x':
                           out.print('z');
                           break;
                       case 'c':
                           out.print('x');
                           break;
                       case 'v':
                           out.print('c');
                           break;
                       case 'b':
                           out.print('v');
                           break;
                       case 'n':
                           out.print('b');
                           break;
                       case 'm':
                           out.print('n');
                           break;
                       case ',':
                           out.print('m');
                           break;
                       case '.':
                           out.print(',');
                           break;
                        case '/':
                           out.print('.');
                           break;

                   }
               }
       }

     out.println(" ");

        out.flush();
    }

}
/*qwertyuiop
asdfghjkl;
zxcvbnm,./
*/

import java.util.Scanner;
public class Abood {

    public static void main(String[] args) {
        Scanner abd = new Scanner(System.in);
        char Sh = abd.next().charAt(0);
        String sq = abd.next();
        String key = "qwertyuiopasdfghjkl;zxcvbnm,./";
        for (int i = 0 ; i < sq.length() ; i++){
            System.out.print( key.charAt( key.indexOf(sq.charAt(i)) + (Sh == 'R' ? -1 : 1) ));
        }

}
}

import java.io.*;

public class Main {

    public static void main(String[] ar) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String[] s = {"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};

        char shift = br.readLine().charAt(0);
        String tochange = br.readLine();
        String update = "";
        for (int i = 0; i < tochange.length(); ++i) {
            char c = tochange.charAt(i);
            for (int j = 0; j < 3; ++j) {
                for (int k = 0; k < s[j].length(); ++k) {
                    if (s[j].charAt(k) == c) {

                        if (shift == 'R') {
                            update += s[j].charAt(k - 1);
                        } else {
                            update += s[j].charAt(k + 1);
                        }
                        k = s[j].length() ; j = 3;
                        break;
                    }
                }
            }
        }

        System.out.println(update);
    }}

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author sataev_mb
 */
public class A271 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
        int shift = in.readLine().equals("R") ? -1 : 1;
        String[] str = new String[3];
        str[0] = "qwertyuiop";
        str[1] = "asdfghjkl;";
        str[2] = "zxcvbnm,./";
        char val[][] = new char[3][];
        for (int i = 0; i < 3; i++) {
            val[i] = new char[str[i].length()];
            for (int j = 0; j < str[i].length(); j++) {
                val[i][j] = str[i].charAt(j);
            }
        }
        String inp = in.readLine();
        String res = "";
        for (int i = 0; i < inp.length(); i++) {
            char s = inp.charAt(i);
            for (int j = 0; j < val.length; j++) {
                for (int k = 0; k < val[j].length; k++) {
                    if (s == val[j][k]) {
                        res += val[j][k + shift];
                    }
                }
            }
        }
        out.write(res);
        out.flush();
        out.close();
    }

}

import java.util.*;
public class CodeForces_474A{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    String arr="qwertyuiop";
    String brr="asdfghjkl;";
    String crr="zxcvbnm,./";
    String a=sc.next();
    String b=sc.next();
    String[]x=b.split("");
    if(a.equals("R")){
      for(int i=0;i<b.length();i++){
        if(arr.contains(x[i])){
          int y=arr.indexOf(x[i]);
          System.out.print(arr.charAt(y-1));
        }
        else if(brr.contains(x[i])){
          int y=brr.indexOf(x[i]);
          System.out.print(brr.charAt(y-1));
        }
        if(crr.contains(x[i])){
          int y=crr.indexOf(x[i]);
          System.out.print(crr.charAt(y-1));
        }
      }
    }
       else{
         for(int i=0;i<b.length();i++){
        if(arr.contains(x[i])){
          int y=arr.indexOf(x[i]);
          System.out.print(arr.charAt(y+1));
        }
        else if(brr.contains(x[i])){
          int y=brr.indexOf(x[i]);
          System.out.print(brr.charAt(y+1));
        }
        if(crr.contains(x[i])){
          int y=crr.indexOf(x[i]);
          System.out.print(crr.charAt(y+1));
        }
      }
       }

  }
}

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
		char x = (br.readLine()).charAt(0);
		int offset= x=='R' ? -1 : 1;
		char arr[]={'q','w','e','r','t','y','u','i','o','p'};
		char arr2[]={'a','s','d','f','g','h','j','k','l',';'};
		char arr3[]={'z','x','c','v','b','n','m',',','.','/'};

		String s=br.readLine();

		for(int i=0,len=s.length(); i<len; i++)
		{
			char ch = s.charAt(i);
			int arrcon=0;
			int j=0;
			for(int len2=arr.length; j<len2; j++)
			{
				if(arr[j]==ch)
				{
					arrcon=1;
					break;
				}
				else if(arr2[j]==ch)
				{
					arrcon=2;
					break;
				}
				else if(arr3[j]==ch)
				{
					arrcon=3;
					break;
				}
			}
			if(arrcon==1)
			{
				System.out.print(arr[j+offset]);
			}
			else if(arrcon==2)
			{
				System.out.print(arr2[j+offset]);
			}
			else if(arrcon==3)
			{
				System.out.print(arr3[j+offset]);
			}
		}
	}
}

import java.util.Scanner;

public class exe {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        String l = in.next();
        String p = "qwertyuiopasdfghjkl;zxcvbnm,./,q";
        if (s.equals("R")) {
            for (int i = 0; i < l.length(); i++)
                for (int j = 0; j < p.length(); j++)
                    if (l.charAt(i) == p.charAt(j) && j - 1 >= 0) {
                        System.out.print(p.charAt(j - 1));
                        break;
                    }
        } else {
            for (int i = 0; i < l.length(); i++)
                for (int j = 0; j < p.length(); j++)
                    if (l.charAt(i) == p.charAt(j)) {
                        System.out.print(p.charAt(j + 1));
                        break;
                    }
        }
    }
}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char d = sc.next().charAt(0);
        String t = sc.next();
        if (d == 'R') {
            for (int i = 0; i < t.length(); i++) {
                for (int j = 0; j < str.length(); j++) {
                    if (t.charAt(i) == str.charAt(j)) {
                        System.out.print(str.charAt(j - 1));
                        break;
                    }
                }
            }
        } else {
            for (int i = 0; i < t.length(); i++) {
                for (int j = 0; j < str.length(); j++) {
                    if (t.charAt(i) == str.charAt(j)) {
                        System.out.print(str.charAt(j + 1));
                        break;
                    }
                }
            }
        }
    }

}

import java.util.*;

public class Solution {
    public static void main (String[] args) {

            Scanner input = new Scanner(System.in);
            String car = input.next();
            String k = "qwertyuiopasdfghjkl;zxcvbnm,./";
            String in = input.next();
            ArrayList<Character> bla = new ArrayList<>();
            for (int i = 0; i < k.length();i++) {
                bla.add(k.charAt(i));
            }
            String ans = "";
            if (car.equals("R")) {
                for (int i = 0; i < in.length() ; i++) {
                  ans += bla.get(bla.indexOf(in.charAt(i)) - 1);
                }
            } else {
                for (int i = 0; i < in.length() ; i++) {
                    ans += bla.get(bla.indexOf(in.charAt(i)) +1);
                }
            }
            System.out.println(ans);

        }
    }

import java.util.Scanner;

public class JavaApplication19 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char ch = sc.next().charAt(0);
        String str = sc.next();

      for ( int i =0 ; i < str.length(); i++){
        if( ch == 'R'){
            switch(str.charAt(i)){
            case 'w': System.out.print('q');break ;
            case 'e': System.out.print( 'w' );break ;
            case 'r': System.out.print( 'e' );break ;
            case 't': System.out.print( 'r' );break ;
            case 'y': System.out.print( 't' );break ;
            case 'u': System.out.print( 'y' );break ;
            case 'i': System.out.print( 'u' );break ;
            case 'o': System.out.print( 'i' );break ;
            case 'p': System.out.print( 'o' );break ;
            case '[': System.out.print( 'p' );break ;
            case 's': System.out.print( 'a' );break ;
            case 'd': System.out.print( 's' );break ;
            case 'f': System.out.print( 'd' );break ;
            case 'g': System.out.print( 'f' );break ;
            case 'h': System.out.print( 'g' );break ;
            case 'j': System.out.print( 'h' );break ;
            case 'k': System.out.print( 'j' );break ;
            case 'l': System.out.print( 'k' );break ;
            case ';': System.out.print( 'l' );break ;
            case 'x': System.out.print( 'z' );break ;
            case 'c': System.out.print( 'x' );break ;
            case 'v': System.out.print( 'c' );break ;
            case 'b': System.out.print( 'v' );break ;
            case 'n': System.out.print( 'b' );break ;
            case 'm': System.out.print( 'n' );break ;
            case ',': System.out.print( 'm' );break ;
            case '.': System.out.print( ',' );break ;
            case '/': System.out.print( '.' );break ;

        }
}
          if( ch == 'L'){
            switch(str.charAt(i)){
            case 'q': System.out.print( 'w' );break ;
            case 'w': System.out.print( 'e' );break ;
            case 'e': System.out.print( 'r' );break ;
            case 'r': System.out.print( 't' );break ;
            case 't': System.out.print( 'y' );break ;
            case 'y': System.out.print( 'u' );break ;
            case 'u': System.out.print( 'i' );break ;
            case 'i': System.out.print( 'o' );break ;
            case 'o': System.out.print( 'p' );break ;
            case 'p': System.out.print( '[' );break ;
            case '[': System.out.print( ']' );break ;
            case 'a': System.out.print( 's' );break ;
            case 's': System.out.print( 'd' );break ;
            case 'd': System.out.print( 'f' );break ;
            case 'f': System.out.print( 'g' );break ;
            case 'g': System.out.print( 'h' );break ;
            case 'h': System.out.print( 'j' );break ;
            case 'j': System.out.print( 'k' );break ;
            case 'k': System.out.print( 'l' );break ;
            case 'l': System.out.print( ';' );break ;
            case 'z': System.out.print( 'x' );break ;
            case 'x': System.out.print( 'c' );break ;
            case 'c': System.out.print( 'v' );break ;
            case 'v': System.out.print( 'b' );break ;
            case 'b': System.out.print( 'n' );break ;
            case 'n': System.out.print( 'm' );break ;
            case 'm': System.out.print( ',' );break ;
            case ',': System.out.print( '.' );break ;
            case '.': System.out.print( '/' );break ;
            }
          }
      }
    }
}

import java.util.Scanner;

public class learning {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char direction = in.next().charAt(0);
        String wrongWord = in.next();
        String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String rightWord = "";
        for (int i = 0; i < wrongWord.length(); i++){
            for (int j = 0; j < s.length(); j++) {
                if(wrongWord.charAt(i) == s.charAt(j)){
                    if(direction == 'L'){
                        rightWord += s.charAt(j+1);
                    }else{
                        rightWord += s.charAt(j-1);
                    }
                }
            }
        }
        System.out.println(rightWord);
    }
}

import java.util.Scanner;

public class Keyboard {
    public static void main(String [] args) {
        Scanner scan = new Scanner(System.in);
        String keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
        int [] pos = new int[30];
        for(int i=0;i<keyboard.length();i++) {
            if(keyboard.charAt(i) == ';') pos[26] = i;
            else if(keyboard.charAt(i) == ',') pos[27] = i;
            else if(keyboard.charAt(i) == '.') pos[28] = i;
            else if(keyboard.charAt(i) == '/') pos[29] = i;
            else pos[keyboard.charAt(i) -'a'] = i;
        }
        int shift = scan.next().equals("L") ? 1:-1;
        String message = scan.next();
        String decoded = "";
        for( int i=0;i<message.length();i++) {
            char c = message.charAt(i);
            int _pos = 0;
            if(c == ';') _pos = pos[26] ;
            else if(c == ',') _pos =pos[27];
            else if(c == '.') _pos = pos[28];
            else if(c == '/') _pos = pos[29] ;
            else _pos = pos[c -'a'];
            _pos+=shift;
            decoded+=keyboard.charAt(_pos);
        }
        System.out.println(decoded);
        scan.close();
    }
}

import java.util.Scanner;

/**
 *
 * @author amrsamy
 */
public class JavaApplication55 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
    Scanner input=new Scanner(System.in);

    String  character_directionofshifting =input.next();
    String name=input.next();
    char [] ch={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};
    if(character_directionofshifting.charAt(0)=='L'){
        for(int i=0;i<name.length();i++)
        {
        for(int j=0;j<ch.length;j++){
            if(name.charAt(i)==ch[j]){
            System.out.print(ch[j+1]);
            }
          }
        }
    }
    if(character_directionofshifting.charAt(0)== 'R'){
        for(int i=0;i<name.length();i++)
        {
        for(int j=0;j<ch.length;j++){
            if(name.charAt(i)==ch[j]){
            System.out.print(ch[j-1]);
            }
          }
        }
    }
    System.out.println();
    }

}

import java.util.*;
public class R271_2_A {
   public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      int n;
      String sh, msg, s, s1, s2, s3;
      s = "qwertyuiopasdfghjkl;zxcvbnm,./";
      //s2 = "";
      //s3 = "";
      sh = in.nextLine();
      msg = in.nextLine();
      if (sh.equals("R")) {
         for (int i = 0; i < msg.length(); i++)
            System.out.print(s.charAt(s.indexOf(msg.charAt(i))-1));
         System.out.println();
      }
      else {
         for (int i = 0; i < msg.length(); i++)
            System.out.print(s.charAt(s.indexOf(msg.charAt(i))+1));
         System.out.println();
      }
   }
}

import java.util.Scanner;

/**
 *
 * @author akaddr
 */
public class A {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String s1 = "qwertyuiop";
        String s2 = "asdfghjkl;";
        String s3 = "zxcvbnm,./";
        String ss = "";
        int n1=0, n2=0, n3=0;

        Scanner in = new Scanner(System.in);
        String c = in.next();
        int t=1;
        if (c.equals("R")) t=-1;

        String s = in.next();

        String res="";
        for (int i=0;i<s.length();i++)
        {
            n1 = s1.indexOf(s.charAt(i));
            n2 = s2.indexOf(s.charAt(i));
            n3 = s3.indexOf(s.charAt(i));

            if (n1>-1) res = res+s1.charAt(n1+t);
            if (n2>-1) res = res+s2.charAt(n2+t);
            if (n3>-1) res = res+s3.charAt(n3+t);
        }
        System.out.println(res);
    }

}

import java.io.*;
import java.util.*;

public class MainA {
    Scanner in;
    PrintWriter out;

    void solve() {
        String nap = in.nextLine();
        String s = in.nextLine();
        for (int i = 0; i < s.length(); i++) {
            char teck = proc(nap.charAt(0), s.charAt(i));
            out.print(teck);
        }
    }

    private char proc(char nap, char s) {
        // qwertyuiop
        // asdfghjkl;
        // zxcvbnm,./
        if (nap == 'R' || nap == 'r') {
            if (s == 'w') {
                return 'q';
            } else if (s == 'e') {
                return 'w';
            } else if (s == 'r') {
                return 'e';
            } else if (s == 't') {
                return 'r';
            } else if (s == 'y') {
                return 't';
            } else if (s == 'u') {
                return 'y';
            } else if (s == 'i') {
                return 'u';
            } else if (s == 'o') {
                return 'i';
            } else if (s == 'p') {
                return 'o';
            } else if (s == 's') {
                return 'a';
            } else if (s == 'd') {
                return 's';
            } else if (s == 'f') {
                return 'd';
            } else if (s == 'g') {
                return 'f';
            } else if (s == 'h') {
                return 'g';
            } else if (s == 'j') {
                return 'h';
            } else if (s == 'k') {
                return 'j';
            } else if (s == 'l') {
                return 'k';
            } else if (s == ';') {
                return 'l';
            } else if (s == '\'') {
                return ';';
            } else if (s == 'x') {
                return 'z';
            } else if (s == 'c') {
                return 'x';
            } else if (s == 'v') {
                return 'c';
            } else if (s == 'b') {
                return 'v';
            } else if (s == 'n') {
                return 'b';
            } else if (s == 'm') {
                return 'n';
            } else if (s == ',') {
                return 'm';
            } else if (s == '.') {
                return ',';
            } else if (s == '/') {
                return '.';
            }
        } else {
            // qwertyuiop
            // asdfghjkl;
            // zxcvbnm,./
            if (s == 'q') {
                return 'w';
            } else if (s == 'w') {
                return 'e';
            } else if (s == 'e') {
                return 'r';
            } else if (s == 'r') {
                return 't';
            } else if (s == 't') {
                return 'y';
            } else if (s == 'y') {
                return 'u';
            } else if (s == 'u') {
                return 'i';
            } else if (s == 'i') {
                return 'o';
            } else if (s == 'o') {
                return 'p';
            } else if (s == 'a') {
                return 's';
            } else if (s == 's') {
                return 'd';
            } else if (s == 'd') {
                return 'f';
            } else if (s == 'f') {
                return 'g';
            } else if (s == 'g') {
                return 'h';
            } else if (s == 'h') {
                return 'j';
            } else if (s == 'j') {
                return 'k';
            } else if (s == 'k') {
                return 'l';
            } else if (s == 'l') {
                return ';';
            } else if (s == ';') {
                return '\'';
            } else if (s == 'z') {
                return 'x';
            } else if (s == 'x') {
                return 'c';
            } else if (s == 'c') {
                return 'v';
            } else if (s == 'v') {
                return 'b';
            } else if (s == 'b') {
                return 'n';
            } else if (s == 'n') {
                return 'm';
            } else if (s == 'm') {
                return ',';
            } else if (s == ',') {
                return '.';
            } else if (s == '.') {
                return '/';
            }
        }
        return 0;
    }

    void run() {
        in = new Scanner(System.in);
        out = new PrintWriter(System.out);
        try {
            solve();
        } finally {
            out.close();
        }
    }

    public static void main(String[] args) {
        new MainA().run();
    }

}

//package code.forse;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Scanner;

/**
 *
 * @author KOKO
 */
public class CodeForse {

    /**
     * @param args the command line arguments
     */
    public static int gcd(int n,int m){

        if(m==0)
            return n;
        else
            return gcd(m,n%m);
    }
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner input = new Scanner(System.in);
        String d = input.next();
        String s =input.next();
        String k1="qwertyuiop",k2="asdfghjkl;",k3="zxcvbnm,./";
        String om="";
        if(d.equals("R")){
            for(int i=0;i<s.length();i++){
            if(k1.contains(s.charAt(i)+"")){
                for(int j=0;j<k1.length();j++){
                    if(s.charAt(i)==k1.charAt(j)){
                        om+=k1.charAt(j-1);
                    }
                }
            }
            else if(k2.contains(s.charAt(i)+"")){
                for(int j=0;j<k2.length();j++){
                    if(s.charAt(i)==k2.charAt(j)){
                        om+=k2.charAt(j-1);
                    }
                }
            }
            else if(k3.contains(s.charAt(i)+"")){
                for(int j=0;j<k3.length();j++){
                    if(s.charAt(i)==k3.charAt(j)){
                        om+=k3.charAt(j-1);
                    }
                }
            }
        }
        }else if (d.equals("L")){
            for(int i=0;i<s.length();i++){
                if(k1.contains(s.charAt(i)+"")){
                    for(int j=0;j<k1.length();j++){
                        if(s.charAt(i)==k1.charAt(j)){
                            om+=k1.charAt(j+1);
                        }
                    }
                }
                else if(k2.contains(s.charAt(i)+"")){
                    for(int j=0;j<k2.length();j++){
                        if(s.charAt(i)==k2.charAt(j)){
                            om+=k2.charAt(j+1);
                        }
                    }
                }
                else if(k3.contains(s.charAt(i)+"")){
                    for(int j=0;j<k3.length();j++){
                        if(s.charAt(i)==k3.charAt(j)){
                            om+=k3.charAt(j+1);
                        }
                    }
                }
            }
        }
            System.out.println(om);
        /////////////////////////////////
//        Building Strings
//        int t=input.nextInt();
//        int n,m,coust=0,temp=Integer.MAX_VALUE;
//        String s,c,p;
//        for (int i=0;i<t;i++){
//            n=input.nextInt();
//            m=input.nextInt();
//            s=input.next();
//            c=input.next();
//            p=input.next();
//            coust=0;
//            for(int j=0;j<m;j++){
//                temp=Integer.MAX_VALUE;
//                if(s.contains(p.charAt(j)+"")){
//                    for(int a=0;a<n;a++){
//                        if(p.charAt(j)==s.charAt(a)){
//                            if(Integer.parseInt(c.charAt(a)+"")<temp){
//                                temp=Integer.parseInt(c.charAt(a)+"");
//                            }
//                        }
//                    }
//                    coust+=temp;
//                }else{
//                    coust=-1;
//                    break;
//                }
//
//            }
//            System.out.println(coust);
//        }
//        The Universal String
//        int t=input.nextInt();
//        String s;
//        int c;
//        boolean flag=true;
//        for(int i=0;i<t;i++){
//            s=input.next();
//            c=s.charAt(0);
//            flag=true;
//            for(int j=1;j<s.length();j++){
//                if(c+1==s.charAt(j) || (c=='z' && s.charAt(j)=='a'))
//                {
//                    c=s.charAt(j);
//                }else
//                {
//                    flag=false;
//                    break;
//                }
//            }
//            if(flag)
//                System.out.println("YES");
//            else
//                System.out.println("NO");
//        }
        /////////////////////////////////
//        camelCase
//        int t=input.nextInt();
//        String s;
//        int count=0;
//        for(int i=0;i<t;i++){
//            s=input.next();
//            count=0;
//            for(int j=0;j<s.length();j++){
//                if(s.charAt(j)>=65 && s.charAt(j)<=90)
//                    count++;
//            }
//            if (count<7)
//                System.out.println("YES");
//            else
//                System.out.println("NO");
//        }
        ////////////////////////
//        The Special King
//        int t=input.nextInt();
//        int x1,y1,x2,y2;
//        for(int i=0;i<t;i++){
//            x1=input.nextInt();
//            y1=input.nextInt();
//            x2=input.nextInt();
//            y2=input.nextInt();
//            System.out.println(Math.abs(x1-x2)+Math.abs(y1-y2));
//        }
        ////////////////////////////////
//        Cube
//        int t=input.nextInt();
//        int arrt;
//
//        for(int i=0;i<t;i++){
//            arrt=input.nextInt();
//            System.out.println((int)Math.sqrt(arrt/6));
//        }

        /////////////////////////////
//        Word
//        String s =input.next();
//        int u=0,l=0;
//        for(int i=0;i<s.length();i++){
//            if(s.charAt(i)>=65 && s.charAt(i)<=90){
//                u++;
//            }
//            if(s.charAt(i)>=97 && s.charAt(i)<=122){
//                l++;
//            }
//        }
//        if(l>=u){
//            System.out.println(s.toLowerCase());
//        }else
//            System.out.println(s.toUpperCase());
//        //////////////////////////////
//        int t=input.nextInt();
//        int n,arr[],arrsum[]=new int[t],sum=0;
//        for(int i=0;i<t;i++){
//
//            n=input.nextInt();
//            arr=new int[n];
//            for(int j=0;j<n;j++){
//                arr[j]=input.nextInt();
//            }
//            sum=0;
//            for(int x=0;x<n;x++){
//                for(int y=x;y<n;y++){
//
//                    sum+=bu(x,y,arr);
//
//                }
//            }
//            System.out.println(sum);
//        }
        ////////////////////////////////////////
//        IQ Test
//        char c[][]=new char[4][4];
//        String s;
//        char q;
//        for(int i=0;i<4;i++){
//            s=input.next();
//            c[i]=s.toCharArray();
//        }
//        boolean temp=teastloop(c);
//        for(int i=0;i<4;i++){
//            for(int j=0;j<4;j++){
//                q=c[i][j];
//                if(c[i][j]=='#')
//                    c[i][j]='.';
//                else if(c[i][j]=='.')
//                    c[i][j]='#';
//                if(teastloop(c))
//                    temp=true;
//                c[i][j]=q;
//
//            }
//        }
//        if(temp)
//            System.out.println("YES");
//        else
//            System.out.println("NO");
        //////////////////////
//        String Task
//        String s=input.next();
//        s=s.toLowerCase();
//        for(int count=0;count<s.length();count++){
//            if(s.charAt(count)=='a'||s.charAt(count)=='o'||s.charAt(count)=='i'||s.charAt(count)=='u'||s.charAt(count)=='e'||
//                    s.charAt(count)=='y'){
//
//
//            }else
//                System.out.print("."+s.charAt(count));
//        }
//        /////////////////////
//        Good Number
//        int n=input.nextInt();
//        int k=input.nextInt();
//        String s;
//        int j=0,c=0;
//        for(int count=0;count<n;count++){
//            s=input.next();
//            j=0;
//            for(int i=0;i<=k;i++){
//                if(s.contains(i+"")){
//                    j++;
//                }
//            }
//            if(j>k)
//                c++;
//        }
//        System.out.println(c);
        ///////////////////////////////
//        Word Capitalization
//        String s=input.next();
//        if(Character.isUpperCase(s.charAt(0))){
//            System.out.println(s);
//        }
//        if(Character.isLowerCase(s.charAt(0))){
//
//            System.out.println(Character.toUpperCase(s.charAt(0))+s.substring(1));
//        }

        /////////////////////////
//        Petya and Strings
//        String s1=input.next();
//        String s2=input.next();
//        int n=0;
//        s1=s1.toLowerCase();
//        s2=s2.toLowerCase();
//        n=s1.compareTo(s2);
//
//        if(n>0)
//            System.out.println("1");
//        else if(n==0)
//            System.out.println("0");
//        else
//            System.out.println("-1");
        ///////////////////////////
//        Beautiful Matrix
//        int m,x=0,y=0,c=0;
//        for(int i=0;i<5;i++){
//            for(int j=0;j<5;j++){
//                m=input.nextInt();
//                if(m==1){
//                    x=i;y=j;
//                }
//            }
//        }
//        c=Math.abs(x-2)+Math.abs(y-2);
//        System.out.println(c);
        /////////////////////////
//        Bear and Big Brother
//        int a=input.nextInt();
//        int b=input.nextInt();
//        int y=0;
//        for (;a<=b;){
//            a*=3;
//            b*=2;
//            y++;
//        }
//        System.out.println(y);
        ////////////////////////////
//        Anton and Danik
//        int n =input.nextInt();
//        int a=0,d=0;
//        String w=input.next();
//        for (int count=0;count<n;count++){
//            if(w.charAt(count)=='A')
//                a++;
//            else if(w.charAt(count)=='D')
//                d++;
//        }
//        if(a>d)
//            System.out.println("Anton");
//        else if(d>a)
//            System.out.println("Danik");
//        else if(a==d)
//            System.out.println("Friendship");
//
        /////////////////////////////
        //Vanya and Fence
//        Scanner input = new Scanner(System.in);
//        int n = input.nextInt();
//        int h= input.nextInt();
//        int a;
//        int s=0;
//        for (int count=0;count<n;count++){
//            a=input.nextInt();
//            if(a<=h)
//                s++;
//            else
//                s+=2;
//        }
//
//        System.out.println(s);
//

////////////////////////
//        int n =input.nextInt();
//        int p[]=new int[n];
//        int q[]=new int[n];
//        for(int count=0;count<n;count++){
//            p[count]=input.nextInt();
//            q[count]=input.nextInt();
//        }
//        int c=0;
//        for(int count =0;count<n;count++){
//            if((q[count]-p[count])>=2)
//                c++;
//        }
//        System.out.println(c);
        ///////////////////
//        team
//        int n= input.nextInt();
//        int x[] = new int[n];
//        int y[] = new int[n];
//        int z[] = new int[n];
//        for(int count=0;count<n;count++){
//            x[count]=input.nextInt();
//            y[count]=input.nextInt();
//            z[count]=input.nextInt();
//
//        }
//        int c=0,p=0;
//         for(int count=0;count<n;count++){
//             c=0;
//            if(x[count]==1)
//                c++;
//            if(y[count]==1)
//                c++;
//            if(z[count]==1)
//                c++;
//
//            if(c>1)
//                p++;
//        }
//         System.out.println(p);
//        /////////////////////////////
//        double weight = input.nextDouble();
//        if(weight>0 && weight<=100){
//            if ((weight/2)%2 ==0 )
//                System.out.println("YES");
//            else
//                System.out.println("NO");
//        }

        ////////////////////////////
//        int y=0;
//        while(y<50){
//            int n = (int)(Math.random()*50);
//            int m = (int)(Math.random()*50);
//            int count=0;
//            System.out.println(n+"    "+m+"--------------");
//            for(int a=0;a<n;a++){
//                for(int b=0;b<n;b++){
//
//                    if((Math.pow(a,2)+b)==n && (Math.pow(b,2)+a)==m){
//                        count++;
//                        System.out.println(a+"    "+b);
//                    }
//                }
//            }
//            System.out.println(count);
//            y++;
//        }
    }

//    IQ Test
//    public static boolean teast(int i,int j,char[][] c){
//
//        return (c[i][j]==c[i][j+1])&&(c[i][j]==c[i+1][j])&&(c[i][j] == c[i+1][j+1]);
//    }
//    public static boolean teastloop(char[][] c){
//        for(int i=0;i<4-1;i++){
//            for(int j=0;j<4-1;j++){
//                if(teast(i,j,c))
//                    return true;
//            }
//        }
//        return false;
//    }

//    public static int bu(int l,int a,int arr[]){
//        int sum=arr[l];
//        for(int i=l;i<=a;i++){
//            sum &=arr[i];
//
//        }
//        return sum;
//    }
}

import java.io.*;

public class Main {

	static String file1 = "qwertyuiopasdfghjkl;zxcvbnm,./";

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

		String move = br.readLine();
		String word = br.readLine();

		for(int i = 0;i<word.length();++i){
			int index = file1.indexOf(word.charAt(i));
			if(move.equals("R")){
				bw.append(file1.charAt(index - 1));
			}
			else{
				bw.append(file1.charAt(index + 1));
			}
		}

		bw.flush();
	}
}

import java.util.*;

public class Blind {
	public static final String keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
	public static void main(String[] args) {
		Scanner f = new Scanner(System.in);
		int shift = (f.nextLine().charAt(0) - 79) / (-3);
		String s = f.nextLine();
		f.close();
		for (int i = 0; i < s.length(); i++)
			System.out.print(keyboard.charAt(keyboard.indexOf(s.charAt(i)) + shift));
	}
}

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main m = new Main();
        m.KeyBoard();
    }

    private void KeyBoard() {
        // TODO Auto-generated method stub

        Scanner inp = new Scanner(System.in);
        String s = inp.next();
        String str = inp.next();
        String Answer = "";

        String keyBoard = "qwertyuiop[asdfghjkl;zxcvbnm,./";
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            int index = keyBoard.indexOf(ch);
            if (s.charAt(0) == 'R') {
                Answer = Answer + keyBoard.charAt(index - 1);
            } else {
                Answer = Answer + keyBoard.charAt(index + 1);
            }
        }
        System.out.println(Answer);

    }

}

import java.util.Scanner;

public class hellow {
	static Scanner reader=new Scanner(System.in);
	public static void main(String[] args){
		String dir,str,chaine="qwertyuiopasdfghjkl;zxcvbnm,./";
		int i,a;

		dir=reader.nextLine();
		str=reader.nextLine();

		a=dir.equals("R")?-1:1;
		for(i=0;i<str.length();i++)
			System.out.print(chaine.charAt(chaine.indexOf(str.charAt(i))+a));

	}
}

import java.util.*;
public class maximus1 {
public static void main(String [] args){
	Scanner in=new Scanner(System.in);
	String str="qwertyuiopasdfghjkl;zxcvbnm,./";
	String s=in.next();
	String temp=in.next();
	if(s.charAt(0)=='R'){
		StringBuilder sb=new StringBuilder();
	for(int i=0;i<temp.length();i++){
		for(int j=0;j<str.length();j++){
	if(str.charAt(j)==temp.charAt(i)){
	sb.append(str.charAt(j-1));break;
	}
	}
	}
	System.out.print(sb);
	}
	if(s.charAt(0)=='L'){
		StringBuilder sb=new StringBuilder();
	for(int i=0;i<temp.length();i++){
		for(int j=0;j<str.length();j++){
	if(str.charAt(j)==temp.charAt(i)){
	sb.append(str.charAt(j+1));break;
	}
	}
	}
	System.out.print(sb);
	}

}
}

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		String s1 = "qwertyuiop";
		String s2 = "asdfghjkl;";
		String s3 = "zxcvbnm,./";
		String s4 = "qwertyuiopasdfghjkl;zxcvbnm,./";
		int idx = -1;

		char c = in.next().charAt(0);
		String s = in.next();

		for (int i = 0; i < s.length(); i++) {
			idx = s4.indexOf("" + s.charAt(i));
			//System.out.println(idx);
			if (idx < 10) {
				System.out.print((c == 'R') ? s1.charAt(idx - 1) : s1.charAt(idx + 1));
			}
			else if (idx < 20) {
				System.out.print((c == 'R') ? s2.charAt(idx - 1 - 10) : s2.charAt(idx + 1 - 10));
			}
			else {
				System.out.print((c == 'R') ? s3.charAt(idx - 1 - 20) : s3.charAt(idx + 1 - 20));
			}
		}
	}
}

import java.util.Random;
import java.util.ArrayList;
import java.util.Scanner;
import java.lang.Math;
import static java.lang.Math.abs;
import java.util.Arrays;

/**
 *
 * @author LOL
 */
public class JavaApplication8 {

    /**
     * @param args the command line arguments
     */
    public static int is_found(char ch, String arr) {
        for (int i = 0; i < arr.length(); i++) {
            if (ch == arr.charAt(i)) {
                return i;
            }

        }
        return -1;

    }

    public static void main(String[] args) {

        String arr1 = "qwertyuiopasdfghjkl;zxcvbnm,./";

        Scanner input = new Scanner(System.in);
        String ch = input.next();
        String str = input.next();
        ArrayList<String> arrr = new ArrayList<>();
        if (ch .equals("R") ) {
            for (int i = 0; i < str.length(); i++) {

                int index = is_found(str.charAt(i) , arr1);
                System.out.print(arr1.charAt(index-1));

            }

        }

        else
        {

            for (int i = 0; i < str.length(); i++) {
             int index = is_found(str.charAt(i) , arr1);
                System.out.print(arr1.charAt(index+1));

            }

        }
}
}

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

/**
 * Created by Roland on 10/7/2015.
 */
public class NextRound {

    private Scanner scanner = new Scanner(System.in);
    private PrintWriter writer = new PrintWriter(System.out);
    private static int[] list;

    public String count(){

        String pattern = "qwertyuiopasdfghjkl;zxcvbnm,./";

        String shift = scanner.next();
        scanner.nextLine();
        String message = scanner.nextLine();

        StringBuffer fixed = new StringBuffer();

        for (int i = 0; i <message.length(); i++) {
            int pos = pattern.indexOf(message.substring(i,i+1));
            if("R".equals(shift)){
               fixed.append(pattern.substring(pos - 1, pos ));
            } else {
                fixed.append(pattern.substring(pos+1, pos + 2));
            }
        }

        return fixed.toString();
    }

    public static void main(String[] args){

        NextRound ob = new NextRound();
        System.out.println(ob.count());

    }
}

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        String p = in.next();
        String row1 = "qwertyuiop";
        String row2 = "asdfghjkl;";
        String row3 = "zxcvbnm,./";
        String s = in.next();
        String a = "";

        int m = 0;
        if (p.equals("L"))
            m = 1;
        else if (p.equals("R"))
            m = -1;

        for (int i = 0; i < s.length(); i++) {
            if (row1.contains(String.valueOf(s.charAt(i)))) {
                a += row1.charAt(row1.indexOf(s.charAt(i)) + m);
            } else if (row2.contains(String.valueOf(s.charAt(i)))) {
                a += row2.charAt(row2.indexOf(s.charAt(i)) + m);
            } else if (row3.contains(String.valueOf(s.charAt(i)))) {
                a += row3.charAt(row3.indexOf(s.charAt(i)) + m);
            }
        }
        out.println(a);
        out.close();
    }
}

import java.util.*;
public class Keyboard
{
  public static void main(String[] args)
  {
    Scanner in = new Scanner(System.in);
    String p = in.next();
    int d = 0;
    if ( p.equals("R") ) { d = -1; }
    else { d = 1; }
    String word = in.next();
    String[] z = { "q", "w" , "e" , "r" , "t" , "y", "u", "i", "o", "p" };
    String[] x = { "a", "s" , "d" , "f" , "g" , "h", "j", "k", "l", ";" };
    String[] c = { "z", "x" , "c" , "v" , "b" , "n", "m", ",", ".", "/" };
    String last = "";
    for ( int i = 0; i < word.length(); i++ )
    {
      for ( int k = 0; k < 10 ; k++ )
      {
        if ( word.substring(i,i+1).equals( z[k] ) ) { last += z[k+d]; }
      }
      for ( int k = 0; k < 10 ; k++ )
      {
        if ( word.substring(i,i+1).equals( x[k] ) ) { last += x[k+d]; }
      }
      for ( int k = 0; k < 10 ; k++ )
      {
        if ( word.substring(i,i+1).equals( c[k] ) ) { last += c[k+d]; }
      }
    }
    System.out.print(last);;
  }
}

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String get="qwertyuiopasdfghjkl;zxcvbnm,./";

        char ch =sc.next().charAt(0);
        String word = sc.next();
        String res ="";
        if(ch=='R')
        {
            for(int i = 0 ; i <word.length();++i)
            {
                int index = get.indexOf(word.charAt(i));
                res +=get.charAt(index-1);

            }
        }
        else
        {
            for(int i = 0 ; i <word.length();++i)
            {
                int index = get.indexOf(word.charAt(i));
                res +=get.charAt(index+1);

            }
        }
        System.out.println(res);

    }

}

import java.util.Scanner;

public class Codeforces_474A {

	public static void main(String[] args)
    {

		char keyboard[] = new char[]{'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};

        Scanner scanIn = new Scanner(System.in);
        String direction;
        direction = scanIn.nextLine();
        String testCase;
        testCase = scanIn.nextLine();
        String output = "";
        int pos = direction.equals("R") ? -1 : 1;
        int check;
        for (int i = 0; i< testCase.length(); i++)
        	{
        		for (int j=0;j<keyboard.length;j++)
        			if (testCase.charAt(i)==keyboard[j])
        			{
        				check = j+pos;
        				output += keyboard[check];
        			}
        	}

        System.out.println(output);
    	scanIn.close();
    }
}

import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.StringTokenizer;

/**
 * @author baha
 */
public class ProblemA {

    private static Scanner in;
    private static Output out;

    public static void main(String[] args) throws Exception {
        boolean isFile = false;
        String filenameIn = null;
        if (isFile) {
            in = new Scanner(filenameIn);
        } else {
            in = new Scanner();
            out = new Output(System.out);
        }
        HashMap<Character, ArrayList<Character>> l = new HashMap<Character, ArrayList<Character>>();

        String keys[] = new String[]{"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};
        for (String a : keys) {
            for (int i = 0; i < a.length(); i++) {
                l.put(a.charAt(i), new ArrayList<Character>());
                if (i == 0) {
                    l.get(a.charAt(i)).add('\0');
                    l.get(a.charAt(i)).add(a.charAt(i + 1));
                } else if (i == a.length() - 1) {
                    l.get(a.charAt(i)).add(a.charAt(i - 1));
                    l.get(a.charAt(i)).add('\0');
                } else {
                    l.get(a.charAt(i)).add(a.charAt(i - 1));
                    l.get(a.charAt(i)).add(a.charAt(i + 1));
                }
            }
        }

        String command = in.nextLine();

        String line = in.nextLine();

        int index = 0;

        switch (command) {
            case "L":
                index = 1;
                break;
        }

        for (int i = 0; i < line.length(); i++) {
            System.out.print(l.get(line.charAt(i)).get(index));
        }
        System.out.println();

    }

    private static class Scanner {

        StringTokenizer st = null;
        BufferedReader in;

        public Scanner() {
            in = new BufferedReader(new InputStreamReader(System.in));
        }

        public Scanner(String fileName) throws FileNotFoundException {
            in = new BufferedReader(new FileReader(fileName));
        }

        public String next() throws IOException {
            while (st == null || !st.hasMoreTokens()) {
                st = new StringTokenizer(in.readLine());
            }
            return st.nextToken();
        }

        public String nextLine() throws IOException {
            return in.readLine();
        }

        public int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }
    }

    private static class Output extends PrintStream {

        public Output(OutputStream out) {
            super(out);
        }

        public Output(File file) throws FileNotFoundException {
            super(file);
        }
    }
}

import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws java.lang.Exception {
        Scanner scanner = new Scanner(System.in);
        try {
           char ch = scanner.nextLine().toUpperCase().charAt(0);
           String s = scanner.nextLine();
           char[] arrayOfString = s.toCharArray();
           char[] array = {'q', 'w' , 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p',
                         'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';',
                        'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};
           if(ch=='R'){
               for (int i = 0; i <arrayOfString.length; i++) {
                   for (int j = 0; j <array.length; j++) {
                       if(arrayOfString[i]==array[j]){
                           arrayOfString[i] = array[j-1];
                           System.out.print(arrayOfString[i]);
                       }
                   }
               }
           }else if(ch=='L'){
               for (int i = 0; i <arrayOfString.length; i++) {
                   for (int j = array.length-1; j >=0; j--) {
                       if(arrayOfString[i]==array[j]){
                           arrayOfString[i] = array[j+1];
                           System.out.print(arrayOfString[i]);

                       }
                   }
               }
           }
        } catch (Exception e) {

        }finally{

        }

    }
}

import java.util.*;
import java.math.*;

public class CP {
	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
		String r = sc.next();
		String ans = "";
		String s = sc.next();
		if(r.equals("R")) {
			Map<String, String> mp = new HashMap<>();
			mp.put("w", "q");
			mp.put("e", "w");
			mp.put("r", "e");
			mp.put("t", "r");
			mp.put("y", "t");
			mp.put("u", "y");
			mp.put("i", "u");
			mp.put("o", "i");
			mp.put("p", "o");
			mp.put("s", "a");
			mp.put("d", "s");
			mp.put("f", "d");
			mp.put("g", "f");
			mp.put("h", "g");
			mp.put("j", "h");
			mp.put("k", "j");
			mp.put("l", "k");
			mp.put(";", "l");
			mp.put("x", "z");
			mp.put("c", "x");
			mp.put("v", "c");
			mp.put("b", "v");
			mp.put("n", "b");
			mp.put("m", "n");
			mp.put(",", "m");
			mp.put(".", ",");
			mp.put("/", ".");
			for(int i = 0; i < s.length(); i++) {
				ans += mp.get(s.substring(i, i+1));
			}
			System.out.println(ans);
		} else {
			Map<String, String> mp = new HashMap<>();
			mp.put("q", "w");
			mp.put("w", "e");
			mp.put("e", "r");
			mp.put("r", "t");
			mp.put("t", "y");
			mp.put("y", "u");
			mp.put("u", "i");
			mp.put("i", "o");
			mp.put("o", "p");
			mp.put("a", "s");
			mp.put("s", "d");
			mp.put("d", "f");
			mp.put("f", "g");
			mp.put("g", "h");
			mp.put("h", "j");
			mp.put("j", "k");
			mp.put("k", "l");
			mp.put("l", ";");
			mp.put("z", "x");
			mp.put("x", "c");
			mp.put("c", "v");
			mp.put("v", "b");
			mp.put("b", "n");
			mp.put("n", "m");
			mp.put("m", ",");
			mp.put(",", ".");
			mp.put(".", "/");
			for(int i = 0; i < s.length(); i++) {
				ans += mp.get(s.substring(i,i+1));
			}
			System.out.println(ans);
		}
	}
}

import java.util.HashMap;
import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sr=new Scanner(System.in);
		String s=sr.next();
		String inp=sr.next();
		char ch[]=new char[]{'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};
		HashMap<Character, Integer>hm=new HashMap<Character, Integer>();
		HashMap<Integer, Character>rev=new HashMap<Integer, Character>();
		for(int i=0;i<ch.length;i++)
		{
			hm.put(ch[i], i);
			rev.put(i, ch[i]);
		}
		char c[]=new char[inp.length()];
		if(s.equals("R"))
		{
			for(int i=0;i<inp.length();i++)
			{
				char cca=inp.charAt(i);
				int in=hm.get(cca)-1;
				c[i]=rev.get(in);
			}
		}
		else
		{
			for(int i=0;i<inp.length();i++)
			{

				char cca=inp.charAt(i);
				int in=hm.get(cca)+1;
				c[i]=rev.get(in);
			}
		}
		System.out.println(c);
	}

}

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main(String args[]) throws Exception
    {
        Reader in=new Reader();
        char dir = in.readLine().charAt(0);
        int shift=0;
        if(dir == 'L')
            shift=+1;
        else
            shift=-1;

        String first = "qwertyuiop";
        String second = "asdfghjkl;";
        String third = "zxcvbnm,./";

        String input = in.readLine();
        for(int i=0;i<input.length();i++)
        {
            char c = input.charAt(i);
            int flag=0;
            for(int j=0;j<10;j++)
            {
                if(c==first.charAt(j))
                {
                    print(first,j,shift);
                    break;
                }
                if(c==second.charAt(j))
                {
                    print(second,j,shift);
                    break;
                }
                if(c==third.charAt(j))
                {
                    print(third,j,shift);
                    break;
                }
            }
        }
        System.out.println();
    }

    private static void print(String str, int j,int s) {
        if((j+s)==-1)
        {
            System.out.print(str.charAt(0));
        }
        else if((j+s)==10)
        {
            System.out.print(str.charAt(9));
        }
        else
        {
            System.out.print(str.charAt(s+j));
        }

    }
    static class Reader {
    final private int BUFFER_SIZE = 1 << 16;
    private DataInputStream din;
    private byte[] buffer;
    private int bufferPointer, bytesRead;

    public Reader() {
        din = new DataInputStream(System.in);
        buffer = new byte[BUFFER_SIZE];
        bufferPointer = bytesRead = 0;
    }

    public Reader(String file_name) throws IOException {
        din = new DataInputStream(new FileInputStream(file_name));
        buffer = new byte[BUFFER_SIZE];
        bufferPointer = bytesRead = 0;
    }

    public String readLine() throws IOException {
        byte[] buf = new byte[1024];
        int cnt = 0, c;
        while ((c = read()) != -1) {
            if (c == '\n')
                break;
            buf[cnt++] = (byte) c;
        }
        return new String(buf, 0, cnt);
    }

    public int nextInt() throws IOException {
        int ret = 0;
        byte c = read();
        while (c <= ' ')
            c = read();
        boolean neg = (c == '-');
        if (neg)
            c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (neg)
            return -ret;
        return ret;
    }

    public long nextLong() throws IOException {
        long ret = 0;
        byte c = read();
        while (c <= ' ')
            c = read();
        boolean neg = (c == '-');
        if (neg)
            c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (neg)
            return -ret;
        return ret;
    }

    public double nextDouble() throws IOException {
        double ret = 0, div = 1;
        byte c = read();
        while (c <= ' ')
            c = read();
        boolean neg = (c == '-');
        if (neg)
            c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (c == '.')
            while ((c = read()) >= '0' && c <= '9')
                ret += (c - '0') / (div *= 10);
        if (neg)
            return -ret;
        return ret;
    }

    private void fillBuffer() throws IOException {
        bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
        if (bytesRead == -1)
            buffer[0] = -1;
    }

    private byte read() throws IOException {
        if (bufferPointer == bytesRead)
            fillBuffer();
        return buffer[bufferPointer++];
    }

    public void close() throws IOException {
        if (din == null)
            return;
        din.close();
    }
}
}

import java.util.Scanner;

public class Main {
    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        char c = scanner.next().charAt(0);
        String s = scanner.next();
        String s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] arr1 = s1.toCharArray();
        char[] arr = s.toCharArray();
        int a = 0;
        if (c == 'R') {
            a = -1;

        } else if (c == 'L') {
            a = 1;
        }
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr1.length; j++) {
                if (arr[i] == arr1[j]) {
                    System.out.print(arr1[j +a]);
                }
            }
        }
    }
}

import java.util.Scanner;

public class A474 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String Bias = sc.next();
        String main = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String massage = sc.next();
        char[] mn = main.toCharArray();
        StringBuilder x = new StringBuilder();
        if(Bias.equals("R")){
            for(int i = 0; i < massage.length(); i++){
                char temp = massage.charAt(i);
                int j = 0;
                for(int k = 0; k < main.length(); k++){
                    if(mn[k]==temp){
                        j = k-1;
                        break;
                    }
                }
                x.append(mn[j]);
            }
        }else{
            for(int i = 0; i < massage.length(); i++){
                char temp = massage.charAt(i);
                int j = 0;
                for(int k = 0; k < main.length(); k++){
                    if(mn[k]==temp){
                        j = k+1;
                        break;
                    }
                }
                x.append(mn[j]);
            }
        }
        System.out.println(x);
    }
}

import java.util.Scanner;

public class CF_474A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String dir = sc.next();
        sc.nextLine();

        String input = sc.nextLine();

        char[] keyboard = new char[] { 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
                'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', 'z',
                'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/' };

        char[] typedWrong = input.toCharArray();
        char[] typedCorrect = new char[typedWrong.length];

        for (int x = 0; x < typedWrong.length; x++) {
            if ("R".equals(dir)) {
                for (int y = 0; y < keyboard.length; y++) {
                    if (keyboard[y] == typedWrong[x]) {
                        typedCorrect[x] = keyboard[y - 1];
                        break;
                    }
                }
            }

            if ("L".equals(dir)) {
                for (int y = 0; y < keyboard.length; y++) {
                    if (keyboard[y] == typedWrong[x]) {
                        typedCorrect[x] = keyboard[y + 1];
                        break;
                    }
                }
            }
        }

        System.out.println(new String(typedCorrect));

    }
}

import java.util.Scanner;

public class Key {
	public static void main(String[] args){
		new Key().run();
	}

	public void run(){
		Scanner sc = new Scanner(System.in);

		char[] in = {'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m', ',','.','/'};
		String d = sc.next();
		int di = d.equals("R") ? -1 : 1;
		char[] input = sc.next().toCharArray();

		String result = "";
		for(int i =0; i < input.length; i++){
			for(int j = 0; j < 30; j++){
				if(input[i] == in[j]){
					result += in[j + di];
				}
			}
		}

		System.out.println(result);
	}
}

import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Shubham
 */
public class keyboard {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner s=new Scanner(System.in);
        String a;
        a=s.next();
        char mov=a.charAt(0);

        String ss=s.next();
        int l=ss.length();
        char ar[]=new char[l];
        ar=ss.toCharArray();
        if(mov=='R')
        {

            for(int i=0;i<l;i++)
            {
              // if(ar[i]=='q')
                //   ar[i]='p';
               if(ar[i]=='w')
                   ar[i]='q';
               else if(ar[i]=='e')
                   ar[i]='w';
               else if(ar[i]=='r')
                   ar[i]='e';
               else if(ar[i]=='t')
                   ar[i]='r';
               else if(ar[i]=='y')
                   ar[i]='t';
               else if(ar[i]=='u')
                   ar[i]='y';
               else if(ar[i]=='i')
                   ar[i]='u';
               else if(ar[i]=='o')
                   ar[i]='i';
               else if(ar[i]=='p')
                   ar[i]='o';
              // else if(ar[i]=='a')
                //   ar[i]=';';
               else if(ar[i]=='s')
                   ar[i]='a';
               else if(ar[i]=='d')
                   ar[i]='s';
               else if(ar[i]=='f')
                   ar[i]='d';
               else if(ar[i]=='g')
                   ar[i]='f';
               else if(ar[i]=='h')
                   ar[i]='g';
               else if(ar[i]=='j')
                   ar[i]='h';
               else if(ar[i]=='k')
                   ar[i]='j';

               else if(ar[i]=='l')
                   ar[i]='k';
               else if(ar[i]==';')
                   ar[i]='l';
               //else if(ar[i]=='z')
                 //  ar[i]='/';
               else if(ar[i]=='x')
                   ar[i]='z';
               else if(ar[i]=='c')
                   ar[i]='x';
               else if(ar[i]=='v')
                   ar[i]='c';
               else if(ar[i]=='b')
                   ar[i]='v';
               else if(ar[i]=='n')
                   ar[i]='b';
               else if(ar[i]=='m')
                   ar[i]='n';
               else if(ar[i]==',')
                   ar[i]='m';
               else if(ar[i]=='.')
                   ar[i]=',';
               else if(ar[i]=='/')
                   ar[i]='.';

            }

        }
        else
        {
            for(int i=0;i<l;i++)
            {
               if(ar[i]=='q')
                   ar[i]='w';
               else if(ar[i]=='w')
                   ar[i]='e';
               else if(ar[i]=='e')
                   ar[i]='r';
               else if(ar[i]=='r')
                   ar[i]='t';
               else if(ar[i]=='t')
                   ar[i]='y';
               else if(ar[i]=='y')
                   ar[i]='u';
               else if(ar[i]=='u')
                   ar[i]='i';
               else if(ar[i]=='i')
                   ar[i]='o';
               else if(ar[i]=='o')
                   ar[i]='p';
               //else if(ar[i]=='p')
                 //  ar[i]='q';
               else if(ar[i]=='a')
                   ar[i]='s';
               else if(ar[i]=='s')
                   ar[i]='d';
               else if(ar[i]=='d')
                   ar[i]='f';
               else if(ar[i]=='f')
                   ar[i]='g';
               else if(ar[i]=='g')
                   ar[i]='h';
               else if(ar[i]=='h')
                   ar[i]='j';
               else if(ar[i]=='j')
                   ar[i]='k';
               else if(ar[i]=='k')
                   ar[i]='l';
               else if(ar[i]=='l')
                   ar[i]=';';
               //else if(ar[i]==';')
                 //  ar[i]='a';
               else if(ar[i]=='z')
                   ar[i]='x';
               else if(ar[i]=='x')
                   ar[i]='c';
               else if(ar[i]=='c')
                   ar[i]='v';
               else if(ar[i]=='v')
                   ar[i]='b';
               else if(ar[i]=='b')
                   ar[i]='n';
               else if(ar[i]=='n')
                   ar[i]='m';
               else if(ar[i]=='m')
                   ar[i]=',';
               else if(ar[i]==',')
                   ar[i]='.';
               else if(ar[i]=='.')
                   ar[i]='/';
              // else if(ar[i]=='/')
                //   ar[i]='z';

            }

        }
        for(int i=0;i<l;i++)
        {
            System.out.print(ar[i]);
        }
    }

}

import java.util.Scanner;
import java.lang.*;

public class Main {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        char direction = input.next().charAt(0);
        String s = input.next();
        String moleKeyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
        int   temp = 0;

        for (int i = 0; i < s.length(); i++) {
            for (int j = 0; j < moleKeyboard.length(); j++) {
                if (direction == 'R') {
                    if (moleKeyboard.charAt(j) == s.charAt(i)){
                        sb.append(moleKeyboard.charAt(j-1));
                    }
                }else{
                    if (moleKeyboard.charAt(j) == s.charAt(i)){
                        sb.append(moleKeyboard.charAt(j+1));
                    }
                }
            }

        }
        System.out.println(sb.toString());

    }
}

import java.util.*;

public class Keyboard474A
{
    public static void main(String[] args)
    {
        // Set up scanner
        Scanner sc = new Scanner(System.in);
        // System.out.println("Enter L or R");
        String LorR = sc.next();

        String top = "qwertyuiop";
        String middle = "asdfghjkl;";
        String bottom = "zxcvbnm,./";

        // System.out.println("Enter the phrase typed");
        String st = sc.next();

        StringBuilder answer = new StringBuilder();
        for (int i=0; i<st.length(); i++)
        {
            String ch = st.substring(i,i+1);
            int topindex = top.indexOf(ch);
            int middleindex = middle.indexOf(ch);
            int bottomindex = bottom.indexOf(ch);
            if (topindex >= 0)
            {
                if (LorR.equals("R"))
                {
                    answer.append(top.substring(topindex-1, topindex));
                }
                else
                {
                    answer.append(top.substring(topindex+1, topindex+2));
                }
            }
            else if (middleindex >= 0)
            {
                if (LorR.equals("R"))
                {
                    answer.append(middle.substring(middleindex-1, middleindex));
                }
                else
                {
                    answer.append(middle.substring(middleindex+1, middleindex+2));
                }
            }
            else  // bottomindex >= 0
            {
                if (LorR.equals("R"))
                {
                    answer.append(bottom.substring(bottomindex-1, bottomindex));
                }
                else
                {
                    answer.append(bottom.substring(bottomindex+1, bottomindex+2));
                }
            }
        }
        System.out.println(answer);
    }
}

import java.util.Scanner;

public class Keyboard {

	public static void main(String[] args) {
		String keys="qwertyuiopasdfghjkl;zxcvbnm,./";
		Scanner in=new Scanner(System.in);
		int side=in.next().charAt(0)=='R' ? -1:1;
		String s=in.next();
		in.close();
		char[] line=new char[s.length()];
		for (int i=0; i<s.length(); ++i) {
			line[i]=keys.charAt(keys.indexOf(s.charAt(i))+side);
		}
		System.out.println(line);
	}

}

import java.util.*;

public class Solution{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String direction = sc.next();
        sc.nextLine();

        String input = sc.next();

        HashMap<Integer, Character> hMap = new HashMap<Integer, Character>();

        hMap.put(1, 'q');   //qwertyuiop asdfghjkl; zxcvbnm,./
        hMap.put(2, 'w');
        hMap.put(3, 'e');
        hMap.put(4, 'r');
        hMap.put(5, 't');
        hMap.put(6, 'y');
        hMap.put(7, 'u');
        hMap.put(8, 'i');
        hMap.put(9, 'o');
        hMap.put(10, 'p');

        hMap.put(11, 'a');   // asdfghjkl;
        hMap.put(12, 's');
        hMap.put(13, 'd');
        hMap.put(14, 'f');
        hMap.put(15, 'g');
        hMap.put(16, 'h');
        hMap.put(17, 'j');
        hMap.put(18, 'k');
        hMap.put(19, 'l');
        hMap.put(20, ';');

        hMap.put(21, 'z');   // zxcvbnm,./
        hMap.put(22, 'x');
        hMap.put(23, 'c');
        hMap.put(24, 'v');
        hMap.put(25, 'b');
        hMap.put(26, 'n');
        hMap.put(27, 'm');
        hMap.put(28, ',');
        hMap.put(29, '.');
        hMap.put(30, '/');

        String result = "";

        if(direction.equals("L")){
            for(int i=0; i<input.length(); i++){
                char letter = input.charAt(i);

                Iterator hmIterator = hMap.entrySet().iterator();
                while(hmIterator.hasNext()){
                    Map.Entry mapElement = (Map.Entry)hmIterator.next();
                    char alphabet = (char)mapElement.getValue();
                    if(alphabet == letter){
                        int key = (int)mapElement.getKey() + 1;

                        result = result.concat(hMap.get(key) + "");
                        break;
                    }
                }
            }
        }
        else{
            for(int i=0; i<input.length(); i++){
                char letter = input.charAt(i);

                Iterator hmIterator = hMap.entrySet().iterator();
                while(hmIterator.hasNext()){
                    Map.Entry mapElement = (Map.Entry)hmIterator.next();
                    char alphabet = (char)mapElement.getValue();
                    if(alphabet == letter){
                        int key = (int)mapElement.getKey() - 1;

                        result = result.concat(hMap.get(key) + "");
                        break;
                    }
                }
            }
        }

        System.out.println(result);
    }
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class helloWorld {
    public static void main(String[] args) throws Exception {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String direction = in.readLine();
        char word[] = in.readLine().toCharArray();
        char Characters[] = "qwertyuiopasdfghjkl;zxcvbnm,./".toCharArray();
        HashMap<Character, Integer> map = new HashMap<>();
        int len = word.length;
        String ans = "";
        for (int i = 0; i < Characters.length; i++) {
            map.put(Characters[i], i);
        }

        if (direction.equals("R")) {
            for (int i = 0; i < len; i++) {
                int idx = map.get(word[i]);
                ans += Characters[(idx - 1 < 0) ? 0 : idx - 1];
            }
        } else {
            for (int i = 0; i < len; i++) {
                int idx = map.get(word[i]);
                ans += Characters[(idx + 1 == Characters.length) ? idx : idx + 1];
            }
        }
        System.out.println(ans);
    }
}

import java.util.*;

public class Krot{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		char q = '0';
		String e = " ";
		String r = in.next();
		String text = in.next();
		String test = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char[]arr = new char[text.length()];
		for(int j = 0; j < arr.length; j++){
			arr[j] = text.charAt(j);
		}

		for(int z = 0; z <= arr.length - 1; z++){
			if(test.contains(arr[z] + "") && r.equals("R")){
				q = arr[z];
				for(int m = 0; m <= test.length() - 1; m++){
					if(q  == test.charAt(m)){
							e += test.charAt(m - 1);
					}
				}
			}
			else if(test.contains(arr[z] + "") && r.equals("L")){
				q = arr[z];
				for(int m = 0; m <= test.length() - 1; m++){
					if(q  == test.charAt(m)){
							e += test.charAt(m + 1);
					}
				}

		}
	}
		System.out.println(e);
}
}

import java.util.Scanner;

public class keyboard {

    public static void main(String[] args) {

    char dir;
    char w[][]=new char[][]{{'q','w','e','r','t','y','u','i','o','p'},{'a','s','d','f','g','h','j','k','l',';'},{'z','x','c','v','b','n','m',',','.','/'}};
    String s;
      Scanner sc = new Scanner(System.in);
    dir=sc.next().charAt(0);
      s=sc.next();

      for (int i = 0; i<s.length(); i++) {
        for (int j = 0; j < 3; j++) {
          for (int k = 0; k < w[j].length; k++) {
            if (w[j][k] == s.charAt(i)) {
              if (dir == 'L') {
                System.out.print(w[j][k + 1]);
              } else {

                  System.out.print(w[j][k - 1]);
              }
            }
          }
        }
      }

}
}

import java.io.*;    //PrintWriter
import java.math.*;  //BigInteger, BigDecimal
import java.util.*;  //StringTokenizer, ArrayList

public class R271_Div2_A
{
	FastReader in;
	PrintWriter out;

	public static void main(String[] args)  {
		new R271_Div2_A().run();
	}

	void run()
	{
		in = new FastReader(System.in);
		out = new PrintWriter(System.out);
		solve();
		out.close();
	}

	void solve()
	{
		String a = "qwertyuiopasdfghjkl;zxcvbnm,./";
		String d = in.next();
		String s = in.next();

		String ns = "";
		for (char c : s.toCharArray())
		{
			int i = a.indexOf(c);
			if (d.equals("R"))
				ns += a.charAt(i-1);
			else
				ns += a.charAt(i+1);
		}

		out.println(ns);
	}

	//-----------------------------------------------------
	void runWithFiles() {
		in = new FastReader(new File("input.txt"));
		try {
			out = new PrintWriter(new File("output.txt"));
		}
		catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		solve();
		out.close();
	}

	class FastReader
	{
	    BufferedReader br;
	    StringTokenizer tokenizer;

	    public FastReader(InputStream stream)
	    {
	        br = new BufferedReader(new InputStreamReader(stream));
	        tokenizer = null;
	    }
		public FastReader(File f) {
			try {
				br = new BufferedReader(new FileReader(f));
				tokenizer = null;
			}
			catch (FileNotFoundException e) {
				e.printStackTrace();
			}
		}

	    private String next() {
	        while (tokenizer == null || !tokenizer.hasMoreTokens())
	            try {
	            	tokenizer = new StringTokenizer(br.readLine());
	            }
	            catch (IOException e) {
	                throw new RuntimeException(e);
	            }
	        return tokenizer.nextToken();
	    }
		public String nextLine() {
			try	{
				return br.readLine();
			}
			catch(Exception e) {
				throw(new RuntimeException());
			}
		}

	    int nextInt() {
	        return Integer.parseInt(next());
	    }
	    long nextLong() {
	        return Long.parseLong(next());
	    }
	    double nextDouble() {
	        return Double.parseDouble(next());
	    }
	    BigInteger nextBigInteger() {
	        return new BigInteger(next());
	    }
	    BigDecimal nextBigDecimal() {
	        return new BigDecimal(next());
	    }
	}
}

import java.util.Scanner;
public class Keyboard
{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    char c = sc.next().charAt(0);
    String s=sc.next();
    String d="qwertyuiopasdfghjkl;zxcvbnm,./";
    String j="";
    for(int i=0;i<s.length();i++)
    {
      if(c=='R')
        j+=d.charAt(d.indexOf(s.charAt(i))-1);
      else if (c=='L')
        j+=d.charAt(d.indexOf(s.charAt(i))+1);
    }
    System.out.println(j);
  }
  //so hard much wow
}

/**
 *
 * @author Faruk
 */

import java.util.Arrays;
import java.util.Scanner;
import java.util.HashSet;
import java.util.HashMap;
import java.util.ArrayList;

public class tmp {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);

        String s1 = scan.next();
        String s = scan.next();
        String key1 = "qwertyuiop";
        String key2 = "asdfghjkl;";
        String key3 = "zxcvbnm,./";
        HashMap<Character,Character> map = new HashMap<Character,Character>();

        if(s1.compareTo("L") == 0){
            for(int i=0; i < key1.length()-1; i++){
                map.put(key1.charAt(i),key1.charAt(i+1));
                map.put(key2.charAt(i),key2.charAt(i+1));
                map.put(key3.charAt(i),key3.charAt(i+1));
            }
            for(int i=0; i < s.length(); i++)
                System.out.print(map.get(s.charAt(i)));
        }else{
            for(int i=1; i < key1.length(); i++){
                map.put(key1.charAt(i),key1.charAt(i-1));
                map.put(key2.charAt(i),key2.charAt(i-1));
                map.put(key3.charAt(i),key3.charAt(i-1));
            }
            for(int i=0; i < s.length(); i++)
                System.out.print(map.get(s.charAt(i)));
        }

        System.out.println();

    }

}

import java.util.Scanner;
import java.util.Stack;

public class Codeforces{
	public static void main(String[] args){

		String first = "qwertyuiop", second = "asdfghjkl;'", third = "zxcvbnm,./";

		Scanner sc = new Scanner(System.in);

		char pos = sc.next().charAt(0);
		String s = sc.next();

		sc.close();

		if(pos == 'R'){
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) >= 0){
					if(first.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) - 1));
				}else if(second.indexOf(s.charAt(i)) >= 0){
					if(second.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) - 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) - 1));
				}
			}
		}else{
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) >= 0){
					if(first.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) + 1));
				}else if(second.indexOf(s.charAt(i)) >= 0){
					if(second.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) + 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) + 1));
				}
			}
		}

	}
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;

public class keyBoard {
	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	public static void main(String[] args) {
		FastReader sc = new FastReader();
		String s="qwertyuiopasdfghjkl;zxcvbnm,./";
		String dir=sc.next();
		String s1=sc.next();
		String ans="";
		if(dir.equals("R"))
		{
			for(int i=0;i<s1.length();i++)
			{
				int k=s.indexOf(s1.charAt(i));
				ans=ans+s.charAt(k-1);
			}
		}

		else if(dir.equals("L"))
		{
			for(int i=0;i<s1.length();i++)
			{
				int k=s.indexOf(s1.charAt(i));
				ans=ans+s.charAt(k+1);
			}
		}
		System.out.println(ans);
	}
}

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Base {
    public static void main(String[] args) {
        char[] arrOfChars = new char[]{'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h'
                , 'j', 'k', 'l', ';', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};

        List<Character> characterList = new ArrayList<>();
        for (char arrOfChar : arrOfChars) {
            characterList.add(arrOfChar);
        }

        Scanner scanner = new Scanner(System.in);
        String move = scanner.next();
        String sequence = scanner.next();

        StringBuilder newWord = new StringBuilder();
        for (int i = 0; i < sequence.length(); i++) {
            int temp;

            if (move.equals("R")) {
                temp = characterList.indexOf(sequence.charAt(i)) - 1;
            } else {
                temp = characterList.indexOf(sequence.charAt(i)) + 1;
            }
            if (temp >= characterList.size()) {
                newWord.append(arrOfChars[temp - 1]);
            } else if (temp < 0) {
                newWord.append(arrOfChars[0]);
            } else {
                newWord.append(arrOfChars[temp]);
            }
        }

        System.out.println(newWord);
    }
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class KeyBoard {
	public static void main(String[] args) throws IOException {
		BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
		String dir = f.readLine();
		String str = f.readLine();

		String[] keys = {"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};

		String s = "";
		for (int i = 0; i < str.length(); i++) {
			char c = str.charAt(i);
			for (String key : keys)
				if (key.indexOf(c) >= 0) {
					int index = key.indexOf(c);
					index += dir.equals("R") ? -1 : 1;
					s += key.charAt(index);
				}
		}

		System.out.println(s);
	}
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream.GetField;

public class Main {

	public static int[] indexOf(char[][] cs, char c) {

		int[] is = new int[2];
		for (int i = 0; i < cs.length; i++) {
			for (int j = 0; j < cs[i].length; j++) {
				if (c == cs[i][j]) {
					is[0] = i;
					is[1] = j;
					return is;
				}
			}
		}

		return is;
	}

	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		char c = reader.readLine().charAt(0);
		char[] stringChars = reader.readLine().toCharArray();
		char[][] ds = new char[3][];
		ds[0] = "qwertyuiop".toCharArray();
		ds[1] = "asdfghjkl;".toCharArray();
		ds[2] = "zxcvbnm,./".toCharArray();
		String ss ="";
		for (char d : stringChars) {
			int[] iis = indexOf(ds, d);
			ss+=ds[iis[0]][c == 'R' ? iis[1] - 1 : iis[1] + 1];
		}
		System.out.println(ss);

	}
}

/**
 * @author Juan Sebastian Beltran Rojas
 * @mail jsbeltran.valhalla@gmail.com
 * @veredict No enviado
 * @problemId 474A
 * @problemName Keyboard
 * @judge http://www.codeforces.com
 * @category adhoc
 * @level easy
 * @date 7/9/2015
 **/
import java.io.*;
import java.util.*;
import static java.lang.Integer.*;
import static java.lang.Math.*;
public class CF474A {
	public static void main(String args[]) throws Throwable {
		char[][] arr={"qwertyuiop".toCharArray(),
			"asdfghjkl;".toCharArray(),
			"zxcvbnm,./".toCharArray()};
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		char A=in.readLine().charAt(0);
		int s=-1;
		if(A=='L')
			s=1;
		char[] B=in.readLine().trim().toCharArray();
		for(int i=0;i<B.length;i++) {
			int j,k=0;
			for(j=0;j<arr.length;j++) {
				for(k=0;k<arr[j].length;k++)
					if(arr[j][k]==B[i])
						break;
				if(k<arr[j].length)
					break;
			}
			System.out.print(arr[j][k+s]);
		}
		System.out.println();
	}
}

import java.util.Scanner;
import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		char input1=sc.next().charAt(0);
		String input=sc.next();
		char key[]={'q','w','e','r','t','y','u','i','o','p',
			'a','s','d','f','g','h','j','k','l',';',
			'z','x','c','v','b','n','m',',','.','/'};
		char output[]=new char[input.length()];
		char ch[]=input.toCharArray();
		for(int i=0;i<ch.length;i++){
			for(int j=0;j<=key.length-1;j++){
			if(input1=='R'){
				if(ch[i]==key[j]){
					output[i]+=key[j-1];
				}
			}
			else if(input1=='L'){
				if(ch[i]==key[j]){
				output[i]+=key[j+1];
				}
			}
		}
		}
		for(int i=0;i<output.length;i++){
			System.out.print(output[i]);
		}
	}
}

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;

public class Lo {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        ArrayList<Character> l = new ArrayList<Character>();
        l.add('q');l.add('w');l.add('e');l.add('r');l.add('t');l.add('y');l.add('u');l.add('i');l.add('o');l.add('p');
        l.add('a');l.add('s');l.add('d');l.add('f');l.add('g');l.add('h');l.add('j');l.add('k');l.add('l');l.add(';');
        l.add('z');l.add('x'); l.add('c');l.add('v');l.add('b');l.add('n');l.add('m');l.add(',');l.add('.');l.add('/');
        String s1=in.next();
        String s2=in.next();
        if(s1.equals("R"))
        {
            for(int i=0;i<s2.length();i++)
            {
                System.out.print(l.get(l.indexOf(s2.charAt(i))-1));
            }
        }
        else
        {
            for(int i=0;i<s2.length();i++)
            {
                System.out.print(l.get(l.indexOf(s2.charAt(i))+1));
            }
        }

    }

}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Hope {
    public static void main(String[] args) throws IOException {
        ArrayList<String> l1=new ArrayList<String>();
        ArrayList<String> l2=new ArrayList<String>();
        ArrayList<String> l3=new ArrayList<String>();

        l1.add("q");
        l1.add("w");
        l1.add("e");
        l1.add("r");
        l1.add("t");
        l1.add("y");
        l1.add("u");
        l1.add("i");
        l1.add("o");
        l1.add("p");

        l2.add("a");
        l2.add("s");
        l2.add("d");
        l2.add("f");
        l2.add("g");
        l2.add("h");
        l2.add("j");
        l2.add("k");
        l2.add("l");
        l2.add(";");

        l3.add("z");
        l3.add("x");
        l3.add("c");
        l3.add("v");
        l3.add("b");
        l3.add("n");
        l3.add("m");
        l3.add(",");
        l3.add(".");
        l3.add("/");

        BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
        String c= b.readLine();
        String ligne2=b.readLine();
        int xx=0;
        if(c.equals("R"))
            xx=-1;
        else
            xx=1;
        String ligne3=new String();
        for (int i = 0; i < ligne2.length(); i++) {

            if(ligne2.charAt(i)=='z'&& xx==-1)
                System.out.print("x");
            else
                if(ligne2.charAt(i)=='q'&& xx==-1)
                System.out.print("w");
                else

                        if(ligne2.charAt(i)=='a'&& xx==-1)
                        System.out.print("s");
                        else
                            if(ligne2.charAt(i)=='p'&&xx==1)
                            System.out.print("o");
                            else
                                if(ligne2.charAt(i)=='/'&&xx==1)
                                System.out.print(".");
                                else
                                    if(ligne2.charAt(i)==';'&&xx==1)
                                    System.out.print("l");

                                    else
            if(l1.indexOf(""+ligne2.charAt(i))!=-1)
            {
                System.out.print(l1.get(l1.indexOf(""+ligne2.charAt(i))+xx));
            }
            else
                if(l2.indexOf(""+ligne2.charAt(i))!=-1)
                {
                    System.out.print(l2.get(l2.indexOf(""+ligne2.charAt(i))+xx));
                }
                else
                    if(l3.indexOf(""+ligne2.charAt(i))!=-1)
                    {
                        System.out.print(l3.get(l3.indexOf(""+ligne2.charAt(i))+xx));
                    }

        }

    }

}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Scanner;
import java.util.ArrayList;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Bisoye
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        AKeyboard solver = new AKeyboard();
        solver.solve(1, in, out);
        out.close();
    }

    static class AKeyboard {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            char[] key = "qwertyuiopasdfghjkl;zxcvbnm,./".toCharArray();
            List<Character> chars = new ArrayList<>();
            for (char k :
                    key) {
                chars.add(k);
            }

            String dim = in.next();
            String typed = in.next();

            for (char ch : typed.toCharArray()) {
                int addToIdx = dim.equals("R") ? -1 : 1;
//            System.out.println(chars.indexOf(ch));
                out.print(chars.get(chars.indexOf(ch) + addToIdx));
            }
            out.println();
        }

    }
}

import java.util.*;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

public class sol {

	static class Reader {

		static BufferedReader reader;
		static StringTokenizer tokenizer;

		static void init(InputStream input) {
			reader = new BufferedReader(new InputStreamReader(input));
			tokenizer = new StringTokenizer("");
		}

		static String next() throws IOException {
			while(!tokenizer.hasMoreTokens()) {
				tokenizer = new StringTokenizer(reader.readLine());
			}
			return tokenizer.nextToken();
		}

		static int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		static long nextLong() throws IOException {
			return Long.parseLong(next());
		}

	}

	static long[] merge(long[] a,long[] b) {
		int m = a.length;
		int n = b.length;
		long[] c = new long[m+n];
		int j=0, k=0;
		while(j+k<m+n) {
			if(j>=m) {
				c[j+k]=b[k];
				k++;
			}
			else if(k>=n) {
				c[j+k]=a[j];
				j++;
			}
			else {
				if(a[j]<b[k]) {
					c[j+k]=a[j];
					j++;
				}
				else {
					c[j+k]=b[k];
					k++;
				}
			}
		}
		/*while(j<m) {
			c[j+k]=a[j];
			j++;
		}
		while(k<n) {
			c[j+k]=b[k];
			k++;
		}*/
		return c;
	}

	static long[] Msort(long[] unsorted) {
		int l = unsorted.length;
		if(l<=1) {
			return unsorted;
		}
		else {
			long[] Msorted = new long[l];
			long[] m1 = new long[l/2];
			long[] m2 = new long[l-(l/2)];
			for(int i=0; i<l; i++) {
				if(i<l/2) {
					m1[i] = unsorted[i];
				}
				else {
					m2[i-l/2] = unsorted[i];
				}
			}
			Msorted = merge(Msort(m1),Msort(m2));
			return Msorted;
		}

	}

	static void fillArr(int[] arr, int n) throws IOException {
		for(int i=0; i<n; i++) {
			arr[i] = Reader.nextInt();
		}
	}
	static void darr(int[] arr, int n) {
		for(int i=0; i<n; i++) {
			System.out.print(arr[i]+" ");
		}
		System.out.println();
	}

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		Reader.init(System.in);

		char[] l1 = {'q','w','e','r','t','y','u','i','o','p'};
		char[] l2 = {'a','s','d','f','g','h','j','k','l',';'};
		char[] l3 = {'z','x','c','v','b','n','m',',','.','/'};
		char[] keyboard = {'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};

		char move = Reader.next().charAt(0);
		char[] inp = Reader.next().toCharArray();

		if(move=='R') {
			for(int i=0; i<inp.length; i++) {
				int j=0;
				while(keyboard[j]!=inp[i]) {
					j++;
				}
				System.out.print(keyboard[j-1]);
			}
		}

		else {
			for(int i=0; i<inp.length; i++) {
				int j=0;
				while(keyboard[j]!=inp[i]) {
					j++;
				}
				System.out.print(keyboard[j+1]);
			}
		}

	}
}

import java.util.*;
public class Keyboard {

	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		char c=sc.nextLine().charAt(0);
		String s=sc.nextLine();
		String k[]=new String[3];
		k[0]="qwertyuiop";
		k[1]="asdfghjkl;";
		k[2]="zxcvbnm,./";
		String ans="";
		if(c=='R') {
			for(int i=0;i<s.length();i++) {
				char ch=s.charAt(i);
				ans+=ri8(ch,k);
			}
		}else {
			for(int i=0;i<s.length();i++) {
				char ch=s.charAt(i);
				ans+=lef(ch,k);
			}
		}
		System.out.println(ans);

	}
	static String ri8(char c,String s[]) {
		String r="";
		for(int i=0;i<s.length;i++) {
			for(int j=0;j<10;j++) {
				if(c==s[i].charAt(j)) {
					r+=s[i].charAt(j-1);
				}
			}
		}
		return r;
	}
	static String lef(char c,String s[]) {
		String r="";
		for(int i=0;i<s.length;i++) {
			for(int j=0;j<10;j++) {
				if(c==s[i].charAt(j)) {
					r+=s[i].charAt(j+1);
				}
			}
		}
		return r;
	}

}

import java.util.Scanner;
import java.io.OutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 * @author Andrey Menkov (nothingelsematters7@gmail.com)
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		Scanner in = new Scanner(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		TaskA solver = new TaskA();
		solver.solve(1, in, out);
		out.close();
	}
}

class TaskA {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        String s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";

        String type = in.next();
        char[] s = in.next().toCharArray();

        if (type.equals("L")) {
            for (char ch: s) {
                out.print(s1.charAt(s1.indexOf(ch) + 1));
            }
        } else {
            for (char ch: s) {
                out.print(s1.charAt(s1.indexOf(ch) - 1));
            }
        }

        out.println();
    }
}

import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Keyboard {

	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	public static void main(String[] args) {
		FastReader sc = new FastReader();
		String in = sc.next();
		String a = "qwertyuiopasdfghjkl;zxcvbnm,./";
		List<Character> l = new ArrayList<>();
		for(int i=0; i<a.length(); i++)
		{
			l.add(a.charAt(i));
		}
		int n=0;
		if(in.charAt(0)=='L')
		{
			n=1;
		}
		else
		{
			n=-1;
		}

		String code = sc.next();
		StringBuilder sb = new StringBuilder();
		for(int i=0; i<code.length(); i++)
		{
			sb.append(l.get(l.indexOf(code.charAt(i))+n));
		}

		System.out.println(sb.toString());
	}

}

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.InputMismatchException;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
import java.util.TreeSet;

public class Main
{
	private final String TABLE = "qwertyuiopasdfghjkl;zxcvbnm,./";

	public void foo()
	{
		MyScanner scan = new MyScanner();
		String dir = scan.next();
		String seq = scan.next();
		StringBuilder str = new StringBuilder();
		for(int i = 0;i < seq.length();++i)
		{
			for(int j = 0;j < TABLE.length();++j)
			{
				if(seq.charAt(i) == TABLE.charAt(j))
				{
					if("R".equals(dir))
					{
						str.append(TABLE.charAt(j - 1));
					}
					else
					{
						str.append(TABLE.charAt(j + 1));
					}
					break;
				}
			}
		}
		System.out.println(str);
	}

	public static void main(String[] args)
	{
		new Main().foo();
	}

	class MyScanner
	{
	    private byte[] buf = new byte[1024];
	    private int curChar;
	    private int numChars;
	    BufferedInputStream bis = new BufferedInputStream(System.in);

	    public int read()
	    {
	        if (-1 == numChars)
	        {
	        	throw new InputMismatchException();
	        }
	        if (curChar >= numChars)
	        {
	            curChar = 0;
	            try
	            {
	                numChars = bis.read(buf);
	            }
	            catch (IOException e)
	            {
	                throw new InputMismatchException();
	            }
	            if (numChars <= 0)
	            {
	            	return -1;
	            }
	        }
	        return buf[curChar++];
	    }

	    public int nextInt()
	    {
	        int c = read();
	        while (isSpaceChar(c))
	        {
	        	c = read();
	        }
	        int sgn = 1;
	        if (c == '-')
	        {
	            sgn = -1;
	            c = read();
	        }
	        int res = 0;
	        do
	        {
	            if (c < '0' || c > '9')
	            {
	            	throw new InputMismatchException();
	            }
	            res *= 10;
	            res += c - '0';
	            c = read();
	        } while (!isSpaceChar(c));
	        return res * sgn;
	    }

	    public long nextLong()
	    {
	    	int c = read();
	    	while (isSpaceChar(c))
	    	{
	    		c = read();
	    	}
	    	int sgn = 1;
	    	if (c == '-')
	    	{
	    		sgn = -1;
	    		c = read();
	    	}
	    	long res = 0;
	    	do
	    	{
	    		if (c < '0' || c > '9')
	    		{
	    			throw new InputMismatchException();
	    		}
	    		res *= 10;
	    		res += c - '0';
	    		c = read();
	    	} while (!isSpaceChar(c));
	    	return res * sgn;
	    }

	    public String next()
	    {
	        int c = read();
	        while (isSpaceChar(c))
	        {
	        	c = read();
	        }
	        StringBuilder res = new StringBuilder();
	        do
	        {
	            res.appendCodePoint(c);
	            c = read();
	        } while (!isSpaceChar(c));
	        return res.toString();
	    }

	    private boolean isSpaceChar(int c)
	    {
	        return ' ' == c || '\n' == c || '\r' == c || '\t' == c || -1 == c;
	    }
	}
}

import java.io.*;
import java.util.StringTokenizer;

public class Solution {
    private static final int INF = (int) 1e9;
    BufferedReader in;
    PrintWriter out;
    StringTokenizer st;

    String next() throws IOException {
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(in.readLine());
        }
        return st.nextToken();
    }

    int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public void run() throws Exception {
        try {
            //in = new BufferedReader(new InputStreamReader(new FileInputStream("input.txt")));
            in = new BufferedReader(new InputStreamReader(System.in));
            //out = new PrintWriter(new OutputStreamWriter(new FileOutputStream("output.txt")));
            out = new PrintWriter(new OutputStreamWriter(System.out));

            String one = "qwertyuiopasdfghjkl;zxcvbnm,./";
            String two = "asdfghjkl;";
            String three = "zxcvbnm,./";

            String sd = in.readLine();
            String msg = in.readLine();
            int sdv = (sd.equals("R")) ? -1 : 1;

            String ans = "";

            for (int i = 0; i < msg.length(); i++) {
                char c = msg.charAt(i);

                ans += one.charAt(one.indexOf(c) + sdv) + "";
            }

            out.print(ans);

        } finally {
            in.close();
            out.close();
        }
    }

    public static void main(String[] args) throws Exception {
        new Solution().run();
    }
}

import java.util.Scanner;

public class C_474A {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String s=sc.nextLine();
		String s1=sc.nextLine();
		String s2="qwertyuiopasdfghjkl;zxcvbnm,./";
		String s3="";
		if (s.equals("R")) {
			for (int i = 0; i < s1.length(); i++) {
				for (int j = 0; j < s2.length(); j++) {
					if (s2.substring(j,j+1).equals(s1.substring(i,i+1))) {
					s3+=s2.substring(j-1,j);
					}
				}
			}
		}
		if(s.equals("L")) {
			for (int i = 0; i < s1.length(); i++) {
				for (int j = 0; j < s2.length(); j++) {
					if (s2.substring(j,j+1).equals(s1.substring(i,i+1))) {
					s3+=s2.substring(j+1,j+2);
					}
				}
			}
		}
		System.out.println(s3);
	}

}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        String letras = in.nextLine();
        String[] key = {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "z", "x", "c", "v", "b", "n", "m", ",",".", "/"};
        int ind = 0;
        String ans = "", indL = "";
        if (x.equals("R")) {
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind - 1];
            }
        }else{
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind + 1];
            }
        }
        System.out.println(ans);
}
}

import java.util.*;

public class A {
	public static void main(String[] args) {
		A ob = new A();
		ob.solve();
	}

	static Scanner sc = new Scanner(System.in);

	void solve() {
		try {
			String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
			String shift = sc.nextLine();
			String inp = sc.nextLine();
			StringBuilder ans = new StringBuilder("");
			for (int i = 0; i < inp.length(); i++) {
				if (shift.equals("R"))
					ans.append(s.charAt(s.indexOf(inp.charAt(i)) - 1));
				else
					ans.append(s.charAt(s.indexOf(inp.charAt(i)) + 1));
			}
			System.out.println(ans);
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}

import java.io.*;
import java.util.*;
public class x
{
    public static void main(String args[])throws IOException
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s1="qwertyuiopasdfghjkl;zxcvbnm,./";
        String st=br.readLine();
        String s=br.readLine();
        String ans="";
        int n=s.length();
        int i;
        for(i=0;i<n;i++)
        {
            int a=s1.indexOf(s.charAt(i));
            if(st.equals("L"))
            {
                ans+=s1.charAt(a+1);
            }
            else
            {
                ans+=s1.charAt(a-1);
            }
        }
        System.out.println(ans);
    }
}

import java.util.*;

public class A271
{

    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        String sh = sc.next();

        String str = sc.next();

        String org="qwertyuiopasdfghjkl;zxcvbnm,./";
        String l  ="#qwertyuio*asdfghjkl@zxcvbnm,.";
        String r  ="wertyuiop[sdfghjkl;'xcvbnm,./@";
        int cap=0;
        if(sh.equals("R")){
            for(int i=0;i<str.length();i++){
                String s1=""+str.charAt(i);
                int in=org.indexOf(s1);
                if(l.charAt(in)=='*')
                    cap=1-0;
                if(cap==1)
                    p(""+(l.charAt(in)-32));
                else
                    p(""+l.charAt(in));
            }
        }
        if(sh.equals("L")){
            for(int i=0;i<str.length();i++){
                String s1=""+str.charAt(i);
                int in=org.indexOf(s1);
                if(r.charAt(in)=='*')
                    cap=1-0;
                if(r.charAt(in)=='#' || r.charAt(in)=='@'){
                    continue;
                }
                if(cap==1)
                    p(""+(r.charAt(in)-32));
                else
                    p(""+r.charAt(in));
            }
        }
        pl("");

      }

    public static void p(String s)
    {
        System.out.print(s);
    }

    public static void pl(String s)
    {
        System.out.println(s);
    }

}

import java.util.*;
public class a474 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		String move=sc.next();
		String kb="qwertyuiopasdfghjkl;zxcvbnm,./";
		String str="";
		String s=sc.next();
		if(move.equals("R")){
			for(int i=0;i<s.length();i++){
				char ch=s.charAt(i);
				int l=kb.indexOf(ch);
				str+=kb.charAt(l-1);
			}
		}
		else{
			for(int i=0;i<s.length();i++){
				char ch=s.charAt(i);
				int l=kb.indexOf(ch);
				str+=kb.charAt(l+1);
			}
		}
		System.out.println(str);
		sc.close();
	}

}

import java.util.Scanner;

public class Main {
public static void main (String[]args){
String line1= "qwertyuiopasdfghjkl;zxcvbnm,./";
String sol="";
    Scanner se=new Scanner (System.in);
String Dir=se.next();
char a= Dir.charAt(0);
String word=se.next();
if(a=='R')
{
for(int i=0;i<word.length();i++)
{
char q=word.charAt(i);
int w=line1.indexOf(q);
char e=line1.charAt(w-1);
sol=sol+e;

}
}
else if(a=='L')
{
for(int i=0;i<word.length();i++)
{
char q=word.charAt(i);
int w=line1.indexOf(q);
char e=line1.charAt(w+1);
sol=sol+e;
}
}
    System.out.println(sol);
}
}

import java.util.Scanner;
/**
 * Created by LTJJ8051 on 12/29/2015.
 */
public class Main{
    public static void main(String args[])
    {
 String AllChars = "qwertyuiopasdfghjkl;zxcvbnm,./";

        Scanner input = new Scanner(System.in);
        String LR = input.nextLine();
        String word = input.nextLine();
        char [] wordch = word.toCharArray();
        int pos = 0;
        char [] AllCharsch = AllChars.toCharArray();
        for(int i = 0; i<word.length() ; i++)
        {
             pos = AllChars.indexOf(wordch[i]);
            if(LR.equals("R"))
            {
                pos--;
            }
            else if(LR.equals("L"))
            {
                pos++;
            }
            wordch[i]=AllCharsch[pos];
        }
        System.out.println(wordch);
    }
}

import java.util.HashMap;
import java.util.Scanner;

public class Keyboard {
    public static void main(String[] args) {
        String firstRow = "qwertyuiop";
        String secondRow = "asdfghjkl;";
        String thirdRow = "zxcvbnm,./";

        Scanner s = new Scanner(System.in);
        char shift = s.nextLine().charAt(0);
        String cipher = s.nextLine();
        HashMap<Character, Character> shiftedMap = new HashMap<>();
        if (shift == 'R') {
            for (int i = 1; i < firstRow.length(); i++) {
                shiftedMap.put(firstRow.charAt(i), firstRow.charAt(i - 1));
            }
            for (int i = 1; i < secondRow.length(); i++) {
                shiftedMap.put(secondRow.charAt(i), secondRow.charAt(i - 1));
            }
            for (int i = 1; i < thirdRow.length(); i++) {
                shiftedMap.put(thirdRow.charAt(i), thirdRow.charAt(i - 1));
            }
        } else {
            for (int i = 0; i < firstRow.length() - 1; i++) {
                shiftedMap.put(firstRow.charAt(i), firstRow.charAt(i + 1));
            }
            for (int i = 0; i < secondRow.length() - 1; i++) {
                shiftedMap.put(secondRow.charAt(i), secondRow.charAt(i + 1));
            }
            for (int i = 0; i < thirdRow.length() - 1; i++) {
                shiftedMap.put(thirdRow.charAt(i), thirdRow.charAt(i + 1));
            }
        }

        char[] result = new char[cipher.length()];
        for (int i = 0; i < cipher.length(); i++) {
            result[i] = shiftedMap.get(cipher.charAt(i));
        }
        System.out.println(String.valueOf(result));
    }
}

import java.util.*;
public class Solution {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char d[] = new char[s.length()];
        for(int i = 0;i<s.length();i++){
            d[i] = s.charAt(i);
        }
        char p = sc.next().charAt(0);
        String x = sc.next();
        char c[] = new char[x.length()];
        for(int i = 0;i<x.length();i++){
            c[i] = x.charAt(i);
        }
        if(p=='R'){
        for(int i = 0;i<x.length();i++){
            for(int j = 0;j<s.length();j++){
                if(c[i]==d[j]){
                    c[i]=d[j-1];
                }
            }
        }
        }
        else{
        for(int i = 0;i<x.length();i++){
            for(int j = s.length()-1;j>=0;j--){
                if((c[i]==d[j])&&(p=='L')){
                    c[i]=d[j+1];
                }
            }
        }
        }
        for(int i = 0;i<x.length();i++){
            System.out.print(c[i]);
        }
   }
}

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		 StringBuffer s=new StringBuffer(" qwertyuiopasdfghjkl;zxcvbnm,./") ;
		 String r;
		 Scanner I=new Scanner(System.in);
       String p=I.nextLine();
    r=I.nextLine();
		 StringBuffer str=new StringBuffer();
		 for(int i=1;i<=str.length();i++){
		  if(p.equals("R"))
			 System.out.print(s.charAt(s.indexOf(str.charAt(i-1)+"")-1));
		  else
				 System.out.print(s.charAt(s.indexOf(str.charAt(i-1)+"")+1));

		 }
I.close();
	}
}

import java.util.*;
import java.io.*;
public class A474
{
    public static void main(String args[])
    {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        String ch = in.next();
        String s = in.next();
        String x = "qwertyuiopasdfghjkl;zxcvbnm,./";
        if(ch == "R")
        {
            for(int i = 0; i<s.length(); i++)
            {
                out.print(x.charAt(x.indexOf(s.charAt(i))-1));
            }
        }
        else
        {
            for(int i = 0; i<s.length(); i++)
            {
                out.print(x.charAt(x.indexOf(s.charAt(i))+1));
            }
        }
        out.flush();
    }
}

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String in1 = in.next();
		String in2 = in.next();
		StringBuilder result = solve(in1, in2);
		System.out.println(result);
	}

	private static StringBuilder solve(String in1, String in2) {

		String seq = "qwertyuiopasdfghjkl;zxcvbnm,./";
		StringBuilder result = new StringBuilder("");

		for (int i = 0; i < in2.length(); i++) {
			int index = seq.indexOf(in2.charAt(i));

			if (index == 0) {
				result.append("q");
				continue;
			} else if (index == seq.length() - 1) {
				result.append("/");
				continue;
			} else {
				if (in1.equals("R"))
					result.append(seq.charAt(index - 1));
				else if(in1.equals("L"))
					result.append(seq.charAt(index + 1));
			}

		}

		return result;
	}
}

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		String s1 = "qwertyuiop";
		String s2 = "asdfghjkl;";
		String s3 = "zxcvbnm,./";
		String s4 = "qwertyuiopasdfghjkl;xcvbnm,./";
		int idx = -1;

		char c = in.next().charAt(0);
		String s = in.next();

		for (int i = 0; i < s.length(); i++) {
			idx = s4.indexOf("" + s.charAt(i));
			//System.out.println(idx);
			if (idx < 10) {
				System.out.print((c == 'R') ? s1.charAt(idx - 1) : s1.charAt(idx + 1));
			}
			else if (idx < 20) {
				System.out.print((c == 'R') ? s2.charAt(idx - 1-10) : s2.charAt(idx + 1-10));
			}
			else {
				System.out.print((c == 'R') ? s3.charAt(idx - 1-19) : s3.charAt(idx + 1-19));
			}
		}
	}

}

import java.util.Scanner;

public class problem37 {

	public static void main(String[] args) {

		Scanner get = new Scanner(System.in);
		String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char sign = get.next().charAt(0);
		String q = get.next();
		if (sign == 'R')
			for (int i = 0; i < q.length(); i++) {
				for (int j = 0; j < s.length(); j++) {
					if (sign == 'R') {
						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j - 1));
							break;
						}
					} else if (sign == 'L') {

						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j + 1));
							break;
						}

					}
				}

			}
	}

}

import java.util.Scanner;

public class A474 {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        String st = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] c = st.toCharArray();
        String s = sc.next();
        String str = sc.next();
        char [] ch = str.toCharArray();
        if(s.equals("R")){
            for(int i = 0;i < ch.length;i++) {
                for (int j = 0; j < c.length; j++) {
                    if(ch[i] == c[0]){
                        ch[i] = c[c.length - 1];
                    }else if (ch[i] == c[j]) {
                        ch[i] = c[j - 1];
                    }
                }
            }
        }
        String d = new String(ch);
        System.out.println(d);
    }
}

import java.util.Scanner;
import java.util.Vector;

public class Main{
    public static void main(String lol[]){
        Scanner in = new Scanner(System.in);
        Vector<Character> v= new Vector<Character>();
        String dir = in.next();
        String s = in.next();
        String s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String f ="";
        for(int i=0;i<s1.length();i++){
            v.add(s1.charAt(i));
        }

        if(dir.equals("R")){
            //System.out.println("----");
            for(int i=0;i<s.length();i++){
                if(v.contains(s.charAt(i))){
                    int index = v.indexOf(s.charAt(i));
                    char temp = v.elementAt(index-1);
                    String t = "" + temp;
                    f = f+ t;
                }
            }
        }
        System.out.println(f);
        f = "";
    }
}

import java.io.*;
public class keyboard
{
    static BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    public static void main(String args[])throws IOException
    {

        char ch,c;
        String s,s1="";
        char ch1[]={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};
        int i,j,l;
        ch=(char)in.read();
        s=in.readLine();
        l=s.length();
        for(i=0;i<l;i++)
        {
            c=s.charAt(i);
            for(j=0;j<30;j++)
            {
                if(ch1[j]==c)
                 break;
                }
            if(ch=='L')
             s1+=ch1[j-1];
            else
             s1+=ch1[j+1];
            }

    }
}

import java.io.*;

public class Main
{

	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char position = br.readLine().charAt(0);
		String input = br.readLine();
		String predefined = "qwertyuiopasdfghjkl;zxcvbnm,./";
		StringBuilder output = new StringBuilder();
		if(position == 'L' || position == 'l')
		{
			for(int i=0; i<input.length(); i++)
			{
				char present = input.charAt(i);
				if(present == 'q' || present == 'a' || present =='z')
					output.append(present);
				else
				{
					int index = predefined.indexOf(present);
					output.append(predefined.charAt(index-1));
				}

			}
		}
		else
		{
			for(int i=0; i<input.length(); i++)
			{
				char present = input.charAt(i);
				if(present == 'p' || present == ';' || present == '/')
				{
					output.append(present);
				}
				else
				{
					int index = predefined.indexOf(present);
					output.append(predefined.charAt(index+1));
				}
			}
		}
		System.out.println(output);
		br.close();

	}

}

import java.util.Scanner;
public class test5 {
    public static void main(String[] k){
        Scanner in=new Scanner(System.in);
        String b=in.next();
        String s=in.next();
        String g="";
        if(b.equals("R")){
        for(int i=0;i<s.length();i++){
            switch(s.charAt(i)){
                case 'q':g+='q';
                         break;
                case 'w':g+='q';
                         break;
                case 'e':g+='w';
                         break;
                case 'r':g+='e';
                         break;
                case 't':g+='r';
                         break;
                case 'y':g+='t';
                         break;
                case 'u':g+='y';
                         break;
                case 'i':g+='u';
                         break;
                case 'o':g+='i';
                         break;
                case 'p':g+='o';
                         break;
                case '[':g+='p';
                         break;
                case 'a':g+='a';
                         break;
                case 's':g+='a';
                         break;
                case 'd':g+='s';
                         break;
                case 'f':g+='d';
                         break;
                case 'g':g+='f';
                         break;
                case 'h':g+='g';
                         break;
                case 'j':g+='h';
                         break;
                case 'k':g+='j';
                         break;
                case 'l':g+='k';
                         break;
                case ';':g+='l';
                         break;
                case 'z':g+='z';
                         break;
                case 'x':g+='z';
                         break;
                case 'c':g+='x';
                         break;
                case 'v':g+='c';
                         break;
                case 'b':g+='v';
                         break;
                case 'n':g+='b';
                         break;
                case 'm':g+='n';
                         break;
                case ',':g+='m';
                         break;
                case '.':g+=',';
                         break;
                }
            }
        }
        else {
            for(int i=0;i<s.length();i++){
                switch(s.charAt(i)){
                case 'q':g+='w';
                         break;
                case 'w':g+='e';
                         break;
                case 'e':g+='r';
                         break;
                case 'r':g+='t';
                         break;
                case 't':g+='y';
                         break;
                case 'y':g+='u';
                         break;
                case 'u':g+='i';
                         break;
                case 'i':g+='o';
                         break;
                case 'o':g+='p';
                         break;
                case 'p':g+='p';
                         break;
                case 'a':g+='s';
                         break;
                case 's':g+='d';
                         break;
                case 'd':g+='f';
                         break;
                case 'f':g+='g';
                         break;
                case 'g':g+='h';
                         break;
                case 'h':g+='j';
                         break;
                case 'j':g+='k';
                         break;
                case 'k':g+='l';
                         break;
                case 'l':g+='l';
                         break;
                case 'z':g+='x';
                         break;
                case 'x':g+='c';
                         break;
                case 'c':g+='v';
                         break;
                case 'v':g+='b';
                         break;
                case 'b':g+='n';
                         break;
                case 'n':g+='m';
                         break;
                case 'm':g+='m';
                         break;
                }
            }
        }
        System.out.println(g);
    }
}

//package hellow;

import java.util.Scanner;

public class hellow {
	static Scanner reader=new Scanner(System.in);
	public static void main(String[] args){
		String dir,str,chaine="qwertyuiopasdfghjkl;zxcvbnm,./";
		int i,a;

		dir=reader.nextLine();
		str=reader.nextLine();

		a=dir.equals("Ra")?-1:1;
		for(i=0;i<str.length();i++)
			System.out.print(chaine.charAt(chaine.indexOf(str.charAt(i))+a));

	}
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class A {

    public static String getnextchar(char c) {
        String[] keyboard = new String[] { "qwertyuiop", "asdfghjkl;",
                "zxcvbnm,./" };
        for (int i = 0; i < keyboard.length; i++) {
            if (keyboard[i].contains(c + "")) {
                int index = keyboard[i].indexOf(c);
                if (index > 0)
                    return keyboard[i].charAt(index + 1) + "";
                else
                    return "";
            }
        }
        return "";
    }

    public static String getprevchar(char c) {
        String[] keyboard = new String[] { "qwertyuiop", "asdfghjkl;",
                "zxcvbnm,./" };
        for (int i = 0; i < keyboard.length; i++) {
            if (keyboard[i].contains(c + "")) {
                int index = keyboard[i].indexOf(c);
                if (index > 0)
                    return keyboard[i].charAt(index - 1) + "";
                else
                    return "";
            }
        }
        return "";
    }

    public static void main(String[] args) throws IOException {
        // TODO Auto-generated method stub
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String dir = r.readLine();
        String line = r.readLine();
        String ret = "";
        for (int i = 0; i < line.length(); i++) {
            if (dir.equals("R"))
                ret += getprevchar(line.charAt(i));
            if (dir.equals("L"))
                ret += getnextchar(line.charAt(i));
        }
        System.out.println(ret);
    }
}

import java.util.Scanner;

/**
 * Created by frillyfrufru on 25/12/15.
 * @codeforces.id A474
 * @codeforces.url http://codeforces.com/problemset/problem/474/A
 * @codeforces.keywords implementation
 * @codeforces.title Keyboard
 *
 * Mole is typing on a keyboard whose layout is arranged as follows:
 *      q w e r t y u i o p
 *      a s d f g h j k l ;
 *      z x c v b n m , . /
 * Because Mole is hard-of-seeing his accuracy on the keyboard is
 * always off by one key, consistently left or right. Given a sequence
 * of characters Mole has typed, find the intended message.
 *
 * Input:
 * The first line contains one letter describing the direction by
 * which Mole is off in his typing, either 'L' (left) or 'R' (right).
 * The next line contains a sequence of characters typed by Mole.
 * The size of the sequence will be <= 100. Only the characters on
 * Mole's keyboard appear in the sequence.
 *
 * Output:
 * The intended message.
 *
 * Discussion
 * ==========
 * The description does not say what happens with the first and last
 * character in each row.
 * For example, in test case 3,
 *      L,  zxcvbnm,kjhgfdsaqwertyuio
 * what's left of z? Nothing --- it's the first key of the bottom row.
 * The jury's answer is:
 *          xcvbnm,.lkjhgfdswertyuiop
 * Looks like the L modifier turned into an R modifier. Who the fuck
 * writes these descriptions?
 */
public final class A474 {
    /** Do not instantiate. */
    private A474() { }

    public static void main(final String[] notUsed) {
        final String[] kb = {
                "qwertyuiop",
                "asdfghjkl;",
                "zxcvbnm,./"
        };
        Scanner sin = new Scanner(System.in);
        /*
         * dir is the compensating direction. If "L", mole
         * types a key to the left of his intended key, so
         * we compensate with dir = +1. If "R", we compensate
         * with dir = -1.
         */
        int dir = sin.next() == "L" ? 1 : -1;
        String mole = sin.next();

        for (int i = 0; i < mole.length(); i++) {
            char c = mole.charAt(i);
            for (String row : kb) {
                int k = row.indexOf(c);
                if (k != -1) {
                    if (k == 0 && dir == -1) {
                        dir = 1;
                    } else if (k == row.length() - 1 && dir == 1) {
                        dir = -1;
                    }
                    System.out.print(row.charAt(k + dir));
                    break;
                }
            }
        }
        System.out.println();
    }
}

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String shift = in.nextLine();
		String typed = in.nextLine();

		Solver Problem = new Solver( shift, typed );
		Problem.solve( );
	}
}

class Solver {
	private String buttons[ ] = { "q", "w", "e", "r", "t", "y", "u", "i",
			"o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l",
			";", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/"
	};

	private String shift;
	private String typed;
	private HashMap<String, Integer> mp = new HashMap<String, Integer>();

	public Solver( String shift, String typed ) {
		this.shift = shift;
		this.typed = typed;
		for( int i = 0; i < buttons.length; i ++ )
			mp.put( buttons[ i ], i );
	}

	public void solve( ) {
		String res = "";
		for( int i = 0; i < typed.length(); i ++ ) {
			int idx = mp.get( new Character( typed.charAt( i ) ).toString( ) ) + ( shift == "L" ?  1 : -1 );
			//System.out.println(idx + " <--- ");
			res += buttons[ idx < 0 ? 0 : ( idx > 29 ? 29 : idx ) ];
		}
		System.out.println( res );
	}
}

import java.util.Scanner;

public class ProblemA {

	public static void main(String[] args) {
		doIt();
	}

	static void doIt(){
		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		char[] t = sc.next().toCharArray();

		String[] w = {"qwert", "yuiop@[", "asdfg", "hjkl;:]", "zxcvb", "nm,./"};

		for(int i = 0; i < t.length; i++){
			for (int j = 0; j < w.length; j++) {
				int idx = w[j].indexOf(t[i]);
				if (idx == -1){
					continue;
				} else if (s[0] == 'L' && idx < w[j].length()) {
					t[i] = w[j].substring(idx, idx+1).toCharArray()[0];
				} else if (s[0] == 'R' && idx != 0) {
					t[i] = w[j].substring(idx-1, idx).toCharArray()[0];
				}

			}
		}
		System.out.println(t);
	}

}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String letter = in.next();
        String input = in.next();
        for(int i =0 ;i<input.length();i++){
                if (letter.equals("L")) {

            System.out.print(left(input.charAt(i)));

        } if (letter.equals("R")) {
        System.out.print(right(input.charAt(i)));
    }
    }
    }

    public static char left(char c) {
        char[] s1 = {'q','w','e','r','t','y','u','i','o','p'
                    ,'a','s','d','f','g','h','j','k','l',';'
                    ,'z','x','c','v','b','n','m',',','.','/'};

        for (int i = 1; i < s1.length; i++) {
            if (s1[i] == c) {
                return s1[i + 1];
            }

        }
        return 0;
    }

    public static char right(char c) {
        char[] s1 = {'q','w','e','r','t','y','u','i','o','p'
                    ,'a','s','d','f','g','h','j','k','l',';'
                    ,'z','x','c','v','b','n','m',',','.','/'};

        for (int i = 1; i < s1.length; i++) {
            if (s1[i] == c) {
                return s1[i -1];
            }

        }
        return 0;
    }
}

import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
	Scanner input = new Scanner(System.in);
	String s="qwertyuiopasdfghjkl;zxcvbnm,./";
	String count="";
	String d=input.next();
	String a=input.next();
    int ss;
    char temp;
	for(int i=0;i<a.length();i++){
	if(d=="L"){
	ss=s.indexOf(a.charAt(i));
	if(ss==s.length()-1)
		count+=s.charAt(0);
	else
		count+=s.charAt(ss+1);
	}
	else {
		ss=s.indexOf(a.charAt(i));

	if(ss==0)
	count+=s.charAt(s.length()-1);
    else
		count+=s.charAt(ss-1);
	}
	}
	System.out.print(count);
}}

import java.util.*;

public class Krot{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		char q = '0';
		String e = " ";
		String r = in.next();
		String text = in.next();
		String test = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char[]arr = new char[text.length()];
		for(int j = 0; j < arr.length; j++){
			arr[j] = text.charAt(j);
		}

		for(int z = 0; z <= arr.length - 1; z++){
			if(test.contains(arr[z] + "") && r.equals("R")){
				q = arr[z];
				for(int m = 0; m <= test.length() - 1; m++){
					if(q  == test.charAt(m)){
							e += test.charAt(m - 1);
					}
				}
			}

		}
		System.out.println(e);
}
}

import java.util.*;
public class Solution {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char d[] = new char[s.length()];
        for(int i = 0;i<s.length();i++){
            d[i] = s.charAt(i);
        }
        char p = sc.next().charAt(0);
        String x = sc.next();
        char c[] = new char[x.length()];
        for(int i = 0;i<x.length();i++){
            c[i] = x.charAt(i);
        }
        for(int i = 0;i<x.length();i++){
            for(int j = 0;j<s.length()-1;j++){
                if((c[i]==d[j])&&(p=='R')){
                    c[i]=d[j-1];
                }
                else if((c[i]==d[j])&&(p=='L')){
                    c[i]=d[j+1];
                }
            }
        }
        for(int i = 0;i<x.length();i++){
            System.out.print(c[i]);
        }
   }
}

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String in1 = in.next();
		String in2 = in.next();
		StringBuilder result = solve(in1, in2);
		System.out.println(result);
	}

	private static StringBuilder solve(String in1, String in2) {

		String seq = "qwertyuiopasdfghjkl;zxcvbnm,./";
		StringBuilder result = new StringBuilder("");

		for (int i = 0; i < in2.length(); i++) {
			int index = seq.indexOf(in2.charAt(i));

			if (index == 0) {
				result.append("q");
				continue;
			} else if (index == in2.length() - 1) {
				result.append("/");
				continue;
			} else {
				if (in1 == "R")
					result.append(seq.charAt(index + 1));
				else
					result.append(seq.charAt(index - 1));
			}

		}

		return result;
	}
}

import java.util.Scanner;

public class problem37 {

	public static void main(String[] args) {

		Scanner get = new Scanner(System.in);
		String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char sign = get.next().charAt(0);
		String q = get.nextLine();
		if (sign == 'R')
			for (int i = 0; i < q.length(); i++) {
				for (int j = 0; j < s.length(); j++) {
					if (sign == 'R') {
						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j - 1));
							break;
						}
					} else if (sign == 'L') {

						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j + 1));
							break;
						}

					}
				}

			}
	}

}

import java.util.Scanner;

public class problem37 {

	public static void main(String[] args) {

		Scanner get = new Scanner(System.in);
		String s = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char sign = get.next().charAt(0);
		String q = get.next();
		if (sign == 'R')
			for (int i = 0; i < q.length(); i++) {
				for (int j = 0; j < s.length(); j++) {
					if (sign == 'R') {
						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j - 1));
							break;
						}
					} else if (sign == 'L') {

						if (q.charAt(i) == s.charAt(j)) {
							System.out.print(s.charAt(j + 1));
							break;
						}

					}
				}

			}
	}

}

import java.util.Scanner;
public class Main {
public static void main(String[] args){
	Scanner input = new Scanner(System.in);
String s="qwertyuiopasdfghjkl;zxcvbnm,./";
	String count="";
	String d=input.next();
	String a=input.next();
    int ss;
    char temp;
	for(int i=0;i<a.length();i++){
	if(d=="L"){
	ss=s.indexOf(a.charAt(i));
	if(ss==s.length()-1)
		count+=s.charAt(0);
	else
		count+=s.charAt(ss+1);
	}
	else {
		ss=s.indexOf(a.charAt(i));

	if(ss==0)
	count+=s.charAt(s.length()-1);
    else
		count+=s.charAt(ss-1);
	}
	}
	System.out.print(count);
}
}

import java.util.Scanner;
import java.util.Stack;

public class Codeforces{
	public static void main(String[] args){

		String first = "qwertyuiop", second = "asdfghjkl;'", third = "zxcvbnm,./";

		Scanner sc = new Scanner(System.in);

		char pos = sc.next().charAt(0);
		String s = sc.next();

		sc.close();

		if(pos == 'R'){
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) >= 0){
					if(first.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) - 1));
				}else if(second.indexOf(s.charAt(i)) >= 0){
					if(second.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) - 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) - 1));
				}
			}
		}else{
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) <= 9){
					if(first.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) + 1));
				}else if(second.indexOf(s.charAt(i)) <= 9){
					if(second.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) + 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) + 1));
				}
			}
		}

	}
}

import java.util.Scanner;
import java.util.Vector;

public class Main{
    public static void main(String lol[]){
        Scanner in = new Scanner(System.in);
        Vector<Character> v= new Vector<Character>();
        String dir = in.next();
        String s = in.next();
        String s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String f ="";
        for(int i=0;i<s1.length();i++){
            v.add(s1.charAt(i));
        }

        if(dir.equals("R")){
            System.out.println("----");
            for(int i=0;i<s.length();i++){
                if(v.contains(s.charAt(i))){
                    int index = v.indexOf(s.charAt(i));
                    char temp = v.elementAt(index-1);
                    String t = "" + temp;
                    f = f+ t;
                }
            }
        }
        System.out.println(f);
    }
}

import java.util.Scanner;
public class test5 {
    public static void main(String[] k){
        Scanner in=new Scanner(System.in);
        String b=in.next();
        String s=in.next();
        String g="";
        if(b.equals("R")){
        for(int i=0;i<s.length();i++){
            switch(s.charAt(i)){
                case 'q':g+='q';
                         break;
                case 'w':g+='q';
                         break;
                case 'e':g+='w';
                         break;
                case 'r':g+='e';
                         break;
                case 't':g+='r';
                         break;
                case 'y':g+='t';
                         break;
                case 'u':g+='y';
                         break;
                case 'i':g+='u';
                         break;
                case 'o':g+='i';
                         break;
                case 'p':g+='o';
                         break;
                case '[':g+='p';
                         break;
                case 'a':g+='a';
                         break;
                case 's':g+='a';
                         break;
                case 'd':g+='s';
                         break;
                case 'f':g+='d';
                         break;
                case 'g':g+='f';
                         break;
                case 'h':g+='g';
                         break;
                case 'j':g+='h';
                         break;
                case 'k':g+='j';
                         break;
                case 'l':g+='k';
                         break;
                case ';':g+='l';
                         break;
                case 'z':g+='z';
                         break;
                case 'x':g+='z';
                         break;
                case 'c':g+='x';
                         break;
                case 'v':g+='c';
                         break;
                case 'b':g+='v';
                         break;
                case 'n':g+='b';
                         break;
                case 'm':g+='n';
                         break;
                case ',':g+='m';
                         break;
                case '.':g+=',';
                         break;
                }
            }
        }
        else {
            for(int i=0;i<s.length();i++){
                switch(s.charAt(i)){
                case 'q':g+='w';
                         break;
                case 'w':g+='e';
                         break;
                case 'e':g+='r';
                         break;
                case 'r':g+='t';
                         break;
                case 't':g+='y';
                         break;
                case 'y':g+='u';
                         break;
                case 'u':g+='i';
                         break;
                case 'i':g+='o';
                         break;
                case 'o':g+='p';
                         break;
                case 'p':g+='p';
                         break;
                case 'a':g+='s';
                         break;
                case 's':g+='d';
                         break;
                case 'd':g+='f';
                         break;
                case 'f':g+='g';
                         break;
                case 'g':g+='h';
                         break;
                case 'h':g+='j';
                         break;
                case 'j':g+='k';
                         break;
                case 'k':g+='l';
                         break;
                case 'l':g+='l';
                         break;
                case 'z':g+='x';
                         break;
                case 'x':g+='c';
                         break;
                case 'c':g+='v';
                         break;
                case 'v':g+='b';
                         break;
                case 'b':g+='n';
                         break;
                case 'n':g+='m';
                         break;
                case 'm':g+=',';
                         break;
                case ',':g+='.';
                         break;
                }
            }
        }
        System.out.println(g);
    }
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;

public class Keyboard {
    public static void main (String[] args) throws IOException {
        //code
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String Op=br.readLine();
        String line = br.readLine();
        String c1[]={"q", "w", "e", "r", "t", "y", "u", "i", "o", "p"};
        String c2[]={"a","s","d","f","g","h","j","k","l",";"};
        String c3[]={"z","x","c","v","b","n","m","/"};
        ArrayList<String> a1= new ArrayList<>(Arrays.asList(c1));
        ArrayList<String> a2= new ArrayList<>(Arrays.asList(c2));
        ArrayList<String> a3= new ArrayList<>(Arrays.asList(c3));
        StringBuilder sb=new StringBuilder();

//        System.out.println(a1.toString());
//        System.out.println(a2.toString());
//        System.out.println(a3.toString());
        if(Op.equals("R")) {
            for (int i = 0; i < line.length(); i++) {
                String s = line.substring(i, i + 1);

                if (a1.contains(s)) {
                    int num = a1.indexOf(s);
                    //System.out.println(a1.get(num - 1));
                    sb.append(a1.get(num - 1));
                } else if (a2.contains(s)) {
                    int num = a2.indexOf(s);
                    //System.out.println(a2.get(num - 1));
                    sb.append(a2.get(num - 1));
                } else if (a3.contains(s)) {
                    int num = a3.indexOf(s);
                   // System.out.println(a3.get(num - 1));
                    sb.append(a3.get(num - 1));
                }
            }
        }
           else{
            for (int i = 0; i < line.length(); i++) {
                String s = line.substring(i, i + 1);
                if(a1.contains(s)){
                    int num=a1.indexOf(s);
                 //   System.out.println((num+1)%a1.size());
                    sb.append(a1.get((num+1)%a1.size()));
                }
                else if(a2.contains(s)){
                    int num=a2.indexOf(s);
                   // System.out.println((num+1)%a2.size());

                    sb.append(a2.get((num+1)%a2.size()));
                }
                else if(a3.contains(s)){
                    int num=a3.indexOf(s);
                    //System.out.println((num+1)%a3.size());

                    sb.append(a3.get((num+1)%a3.size()));
                }
            }
        }

        System.out.println(sb);
    }
}

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

public class Fun {

    public static void main(String[] args) {
        Vector<Character> keyboard=new Vector<Character>();
        keyboard.add('q');keyboard.add('w');keyboard.add('e');keyboard.add('r');keyboard.add('t');keyboard.add('y');keyboard.add('u');keyboard.add('i');keyboard.add('o');keyboard.add('p');
        keyboard.add('[');keyboard.add(']');keyboard.add('a');keyboard.add('s');keyboard.add('d');keyboard.add('f');keyboard.add('g');keyboard.add('h');keyboard.add('j');keyboard.add('k');
        keyboard.add('l');keyboard.add(';');keyboard.add('z');keyboard.add('x');keyboard.add('c');keyboard.add('v');keyboard.add('b');keyboard.add('n');keyboard.add('m');keyboard.add(',');
        keyboard.add('.');keyboard.add('/');
       Scanner sc=new Scanner(System.in);
       String nword="";
       String dire=sc.nextLine();
       String word=sc.nextLine();
       for(int i=0;i<word.length();i++){

           if(dire.charAt(0)=='R'){

           char c=word.charAt(i);
           nword+=keyboard.get(keyboard.indexOf(c)-1);
           }
           else if(dire.charAt(0)=='L'){
               System.out.println("enter L if");
               char c=word.charAt(i);
               nword+=keyboard.elementAt(keyboard.indexOf(c)+1);
           }
       }
        System.out.println(nword);}}

import java.util.*;
public class A474{
	static char R(char c){
		switch(c){
			case 's':
				return 'a';
			case 'n':
				return 'b';
			case 'v':
				return 'c';
			case 'f':
				return 'd';
			case 'r':
				return 'e';
			case 'g':
				return 'f';
			case 'h':
				 return 'g';
			case 'j':
				return 'h';
			case 'o':
				return 'i';
			case 'k':
				return 'j';
			case 'l':
				return 'k';
			case ';':
				return 'l';
			case ',':
				return 'm';
			case 'm':
				return 'n';
			case 'p':
				return 'o';
			case '[':
				return 'p';
			case 'w':
				return 'q';
			case 't':
				return 'r';
			case 'd':
				return 's';
			case 'y':
				return 't';
			case 'i':
				return 'u';
			case 'b':
				return 'v';
			case 'e':
				return 'w';
			case 'c':
				return 'x';
			case 'u':
				return 'y';
			case 'x':
				return 'z';
		}
		return 'r';
	}

	static char L(char c){
		switch(c){
			//case 's':return 'a';
			case 'v':
				return 'b';
			case 'x':
				return 'c';
			case 's':
				return 'd';
			case 'w':
				return 'e';
			case 'd':
				return 'f';
			case 'f':
				 return 'g';
			case 'g':
				return 'h';
			case 'u':
				return 'i';
			case 'h':
				return 'j';
			case 'j':
				return 'k';
			case 'k':
				return 'l';
			case 'n':
				return 'm';
			case 'b':
				return 'n';
			case 'i':
				return 'o';
			case 'o':
				return 'p';
			//case '	':return 'q';
			case 'e':
				return 'r';
			case 'a':
				return 's';
			case 'r':
				return 't';
			case 'y':
				return 'u';
			case 'c':
				return 'v';
			case 'q':
				return 'w';
			case 'z':
				return 'x';
			case 't':
				return 'y';
			//case '':	return 'z';
		}
		return '=';
	}

	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		char x=sc.next().charAt(0);
		String s=sc.next();
		char a[]=s.toLowerCase().toCharArray();
		if(x=='r'||x=='R'){
			for(int i=0; i<a.length; i++){
				char temp=a[i];
				a[i]=R(temp);
			}
		}
		if(x=='l'||x=='L'){
			for(int i=0; i<a.length; i++){
				char temp=a[i];
				a[i]=L(temp);
			}
		}
		String res=String.valueOf(a);
		System.out.println(res);
	}
}

import java.util.Scanner;

public class A474 {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        String st = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] c = st.toCharArray();
        String s = sc.next();
        String str = sc.next();
        char [] ch = str.toCharArray();
        if(s.equals("R")){
            for(int i = 0;i < ch.length;i++){
                if(ch[i] == c[0]){
                    ch[i] = c[c.length - 1];
                }
            }
            for(int i = 0;i < ch.length;i++) {
                for (int j = 1; j < c.length; j++) {
                    if (ch[i] == c[j]) {
                        ch[i] = c[j - 1];
                    }
                }
            }
        }else if(s.equals("L")){
            for(int i = 0;i < ch.length;i++){
                if(ch[i] == c[c.length - 1]){
                    ch[i] = c[0];
                }
            }
            for(int i = 0;i < ch.length;i++) {
                for (int j = 0; j < c.length - 1; j++) {
                    if (ch[i] == c[j]) {
                        ch[i] = c[j + 1];
                    }
                }
            }
        }
        String d = new String(ch);
        System.out.println(d);
    }
}

import java.util.Scanner;

public class Test{

	public static void main(String args[]){
            char[][] k ={{'q','w','e','r', 't','y','u','i','o','p'},{'a','s','d','f', 'g','h','j','k','l',';'},{'z','x','c','v', 'b','n','m',',','.','/'}};
Scanner input=new Scanner(System.in);
         String str =input.next();
         String s =input.next();
         int r=-1;
            if (s=="R") {
                r=1;
            }
            for (int y=0,i = 0;y<str.length()&&i < 3; i++) {
                for (int j = 0; j < k[i].length; j++) {
                    if (str.charAt(y)==k[i][j]) {
                        System.out.print(k[i][j+r]);
                    }
                }
            }
}}

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Google {

    public static void main(String[] args) throws IOException{
            FastReader read = new FastReader();
            String keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
            HashMap<Character , Character> l =new HashMap<Character , Character>();
            HashMap<Character , Character> r =new HashMap<Character , Character>();
            for (int i = 0; i < keyboard.length()-1; i++) {
                if(i<keyboard.length()-1){
             l.put(keyboard.charAt(i), keyboard.charAt(i+1));}
                if(i>0){
             r.put(keyboard.charAt(i), keyboard.charAt(i-1));
             }
            }
            String lr = read.next();
            String word = read.next();
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < word.length(); i++) {
                if(lr.equals("L"))
                  sb.append(l.get(word.charAt(i)));
                else
                  sb.append(r.get(word.charAt(i)));

        }
            System.out.println(sb);
             }

         }

 class FastReader{
    BufferedReader br ;
    StringTokenizer st;

    public FastReader(){
        InputStreamReader inr =new InputStreamReader(System.in);
        br=new BufferedReader(inr);

    }

    String next(){
        while(st==null || !st.hasMoreElements()){
        try{
        st=new StringTokenizer(br.readLine());
        }
        catch(IOException e){
            e.printStackTrace();
        }}
        return st.nextToken();
    }

    int nextInt(){
        return Integer.parseInt(next());
    }

    double nextDouble(){
        return Double.parseDouble(next());

    }

    long nextLong(){
        return Long.parseLong(next());
    }

    String nextLine(){
        String str="";
        try{
            str=br.readLine();
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
        return str;
    }
}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        String letras = in.nextLine();
        String[] key = {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "z", "x", "c", "v", "b", "n", "m", ".", "/"};
        int ind = 0;
        String ans = "", indL = "";
        if (x.equals("R")) {
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind - 1];
            }
        }else{
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind + 1];
            }
        }
        System.out.println(ans);
}
}

import java.lang.StringBuilder;
import java.util.Scanner;

public class Keyboard{
    public static void main(String args[]){
        String keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";

        Scanner scan = new Scanner(System.in);

        String LR = scan.next();
        String input = scan.next();

        StringBuilder output = new StringBuilder();

        int shift = (LR == "R" ? -1 : 1);

        for(char c : input.toCharArray()){
            output.append(keyboard.charAt(keyboard.indexOf(c)+shift));
        }

        System.out.println(output.toString());

    }
}

import java.lang.*;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            StringBuffer keyboard = new StringBuffer("qwertyuiopasdfghjkl;zxcvbnm,./");
            String dir = in.next();
            String text = in.next();
            int length = text.length();
            StringBuffer result = new StringBuffer();

            int a = (dir == "L") ? 1 : -1;
            for (int i = 0; i < length; i++) {
                int pos = keyboard.indexOf(text.substring(i, i + 1)) + a;
                if (pos < 0) pos = length - 1;
                else if (pos == length) pos = 0;
                result.append(keyboard.charAt(pos));
            }

            System.out.println(result);
        }
    }
}

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Me
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            String word = in.next();
            String letras = in.next();

            char[] k = {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};
            if (letras.charAt(0) == 'R') {
                for (int i = 0; i < word.length(); i++) {
                    for (int j = 0; j < k.length; j++) {
                        if (k[j] == word.charAt(i)) {
                            out.print(k[j - 1]);
                            break;
                        }
                    }
                }
            } else {
                for (int i = 0; i < word.length(); i++) {
                    for (int j = 0; j < k.length; j++) {
                        if (k[j] == word.charAt(i)) {
                            out.print(k[i]);
                            break;
                        }
                    }
                }
            }
            out.close();
        }

    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

    }
}

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StringBuilder res1 = new StringBuilder();
        StringBuilder res2 = new StringBuilder();
        String what = sc.nextLine();
        String all1 = sc.nextLine();
        String[] all = all1.split("");
        for (int i = 0; i < all.length; i++) {
            if (all[i].startsWith("q")) {
                res1.append("w");
            }
            if (all[i].startsWith("w")) {
                res1.append("e");
                res2.append("q");
            }
            if (all[i].startsWith("e")) {
                res1.append("r");
                res2.append("w");
            }
            if (all[i].startsWith("r")) {
                res1.append("t");
                res2.append("e");
            }
            if (all[i].startsWith("t")) {
                res1.append("y");
                res2.append("r");
            }
            if (all[i].startsWith("y")) {
                res1.append("u");
                res2.append("t");
            }
            if (all[i].startsWith("u")) {
                res1.append("i");
                res2.append("y");
            }
            if (all[i].startsWith("i")) {
                res1.append("o");
                res2.append("u");
            }
            if (all[i].startsWith("o")) {
                res1.append("p");
                res2.append("i");
            }
            if (all[i].startsWith("p")) {
                res2.append("o");
            }
            if (all[i].startsWith("a")) {
                res1.append("s");
            }
            if (all[i].startsWith("s")) {
                res1.append("d");
                res2.append("a");
            }
            if (all[i].startsWith("d")) {
                res1.append("f");
                res2.append("s");
            }
            if (all[i].startsWith("f")) {
                res1.append("g");
                res2.append("d");
            }
            if (all[i].startsWith("g")) {
                res1.append("h");
                res2.append("f");
            }
            if (all[i].startsWith("h")) {
                res1.append("j");
                res2.append("g");
            }
            if (all[i].startsWith("j")) {
                res1.append("k");
                res2.append("h");
            }
            if (all[i].startsWith("k")) {
                res1.append("l");
                res2.append("j");
            }
            if (all[i].startsWith("l")) {
                res1.append(";");
                res2.append("k");
            }
            if (all[i].startsWith(";")) {
                res2.append("l");
            }
            if (all[i].startsWith("z")) {
                res1.append("x");
            }
            if (all[i].startsWith("x")) {
                res1.append("c");
                res2.append("z");
            }
            if (all[i].startsWith("c")) {
                res1.append("v");
                res2.append("x");
            }
            if (all[i].startsWith("v")) {
                res1.append("b");
                res2.append("c");
            }
            if (all[i].startsWith("b")) {
                res1.append("n");
                res2.append("v");
            }
            if (all[i].startsWith("n")) {
                res1.append("m");
                res2.append("b");
            }
            if (all[i].startsWith("m")) {
                res1.append(",");
                res2.append("n");
            }
            if (all[i].startsWith(",")) {
                res1.append(".");
                res2.append("m");
            }
            if (all[i].startsWith(".")) {
                res1.append("/");
                res2.append(",");
            }
            if (all[i].startsWith("/")) {
                res2.append("q");
            }
        }
        if (what.startsWith("L")){
            System.out.println(res1);
        } else {
            System.out.println(res2);
        }
    }
}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Keyboard {
    char shift;
    char[] msg;
    public static void main(final String[] args) throws IOException {
        final BufferedReader in;
        final PrintWriter out;
        in = new BufferedReader(new InputStreamReader(System.in));
        out  = new PrintWriter(System.out, true);
        new Keyboard(in).solveAndPrint(out);
    }
    Keyboard(final BufferedReader in) throws IOException {
        shift = in.readLine().charAt(0);
        msg = in.readLine().toCharArray();
    }
    void solveAndPrint(final PrintWriter out) {
        char[][] keys = {{'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'},
                        {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';'},
                        {'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'}};
        for (char c: msg)   out.print(backShift(c, keys));
    }
    char backShift(char c, char[][] keys) {
        int i, j;
        i = j = 0;
        find_pos_c :{
            for (; i < 3; i++)
                for (j = 0; j < 10; j++)
                    if(keys[i][j] == c) break find_pos_c;
        }
        if(shift == 'R')    return keys[i][j-1];
        return keys[i][j+1];
    }
}

import java.util.Scanner;
import java.util.Stack;

public class Codeforces{
	public static void main(String[] args){

		String first = "qwertyuiop", second = "asdfghjkl;'", third = "zxcvbnm,./";

		Scanner sc = new Scanner(System.in);

		char pos = sc.next().charAt(0);
		String s = sc.next();

		sc.close();

		if(pos == 'R'){
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) >= 0){
					if(first.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) - 1));
				}else if(second.indexOf(s.charAt(i)) >= 0){
					if(second.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) - 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 0) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) - 1));
				}
			}
		}else{
			for(int i = 0; i < s.length(); i++){
				if(first.indexOf(s.charAt(i)) >= 9){
					if(first.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(first.charAt(first.indexOf(s.charAt(i)) + 1));
				}else if(second.indexOf(s.charAt(i)) >= 9){
					if(second.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(second.charAt(second.indexOf(s.charAt(i)) + 1));
				}else{
					if(third.indexOf(s.charAt(i)) == 9) System.out.print(" ");
					else System.out.print(third.charAt(third.indexOf(s.charAt(i)) + 1));
				}
			}
		}

	}
}

import java.util.Scanner;
public class a {
public static 	void main(String[] args){
	Scanner input = new Scanner(System.in);
String s="qwertyuiopasdfghjkl;zxcvbnm,./";
	String count="";
	String d=input.next();
	String a=input.next();
    int ss;
    char temp;
	for(int i=0;i<a.length();i++){
	if(d=="L"){
	ss=s.indexOf(a.charAt(i));
	if(ss==s.length()-1)
		count+=s.charAt(0);
	else
		count+=s.charAt(ss+1);
	}
	else {
		ss=s.indexOf(a.charAt(i));

	if(ss==0)
	count+=s.charAt(s.length()-1);
    else
		count+=s.charAt(ss-1);
	}
	}
	System.out.print(count);
}
}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Scanner;
/**
 *
 * @author Ya Ali
 */
public class Codeforce474a {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

     char[] a={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';'
     ,'z','x','c','v','b','n','m',',','.','/'};
    // char[] b={};
    // char[] c={};

     Scanner input = new Scanner(System.in);
        String x=input.nextLine();
         String num=input.nextLine();
         String num1="";
        int sign=2;
       if(x.compareTo("L")==0){

           sign=1;
       }
       else if(x.compareTo("R")==0)  {

          sign=0;
       }
       int sum;

      if(sign==0){

         for(int j=0;j<num.length();j++)
            {
                if(num.charAt(j)=='a' || num.charAt(j)=='q'|| num.charAt(j)=='z'){
                    num1+=String.valueOf(num.charAt(j));
                System.out.printf("%s",num1);
                }
                else
                   for(int p=0;p<30;p++)
                    {
                          if(num.charAt(j)==a[p])
                          {
                         num1+=String.valueOf(a[p-1]);
                             break;
                          }
                    }
           }
      }
      else if(sign==1){

             for(int j=0;j<num.length();j++)
            {
                if(num.charAt(j)=='/' || num.charAt(j)=='.'|| num.charAt(j)==',')
                    num1+=String.valueOf(num.charAt(j));
                else
                   for(int p=1;p<30;p++)
                    {
                          if(num.charAt(j)==a[p])
                          {
                             num1+=String.valueOf(a[p+1]);
                             break;
                          }

                    }
           }

      }
      else
      {

         System.out.printf("Please Inter  L  OR  R ");

      }
      //  String num2="ssvdcdcds";
       // num2=num2.valueOf('d');
      System.out.printf("%s",num1);
    }

}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class helloWorld {
    public static void main(String[] args) throws Exception {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String direction = in.readLine();
        char word[] = in.readLine().toCharArray();
        char Characters[] = "qwertyuiopasdfghjkl;zxcvbnm,./".toCharArray();
        HashMap<Character, Integer> map = new HashMap<>();
        int len = word.length;
        String ans = "";
        for (int i = 0; i < Characters.length; i++) {
            map.put(Characters[i], i);
        }

        if (direction.equals("R")) {
            for (int i = 0; i < len; i++) {
                int idx = map.get(word[i]);
                ans += Characters[(idx - 1 < 0) ? 0 : idx - 1];
            }
        } else {
            for (int i = 0; i < len; i++) {
                int idx = map.get(Characters[i]);
                ans += Characters[(idx + 1 == Characters.length) ? idx : idx + 1];
            }
        }
        System.out.println(ans);
    }
}

//package com.company;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Character> l=new ArrayList<Character>();
        l.add('q');l.add('w');l.add('e');l.add('r');l.add('t');l.add('y');l.add('u');l.add('i');l.add('o');l.add('p');
        l.add('a');l.add('s');l.add('d');l.add('f');l.add('g');l.add('h');l.add('j');l.add('k');l.add('l');l.add(';');l.add('z');l.add('x');
        l.add('c');l.add('v');l.add('b');l.add('n');l.add('m');l.add(',');l.add('.');l.add('/');
        String n =sc.next();
        String i =sc.next();

        if (n=="R") {
                for (int y=0;y<i.length();y++) {

                    System.out.print(l.get(l.indexOf(i.charAt(y))-1));
                }
             }
        else if(n=="L") {
            for (int y=0;y<i.length();y++){
                System.out.print(l.get(l.indexOf(i.charAt(y))+1));

            }
        }
    }
        }

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String letter = in.next();
        String input = in.next();
        for(int i =0 ;i<input.length();i++){
                if (letter.equals("L")) {

            System.out.print(left(input.charAt(i)));

        } if (letter.equals("R")) {
        System.out.print(right(input.charAt(i)));
    }
    }
    }

    public static char left(char c) {
        char[] s1 = {'q','w','e','r','t','y','u','i','o','p'
                    ,'a','s','d','f','g','h','j','k','l',';'
                    ,'z','x','c','v','b','n','m',',','.','/'};

        for (int i = 1; i < s1.length; i++) {
            if (s1[i] == c) {
                return s1[i + 1];
            }

        }
        return 0;
    }

    public static char right(char c) {
        char[] s1 = {'q','w','e','r','t','y','u','i','o','p'
                    ,'a','s','d','f','g','h','j','k','l',';'
                    ,'z','x','c','v','b','n','m',',','.','/'};

        for (int i = 1; i < s1.length; i++) {
            if (s1[i] == c) {
                return s1[i -1];
            }

        }
        return 0;
    }
}

import java.util.Scanner;
public class JavaApplication40 {
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String pos=input.next();
        String word=input.next();
        String arr="qwertyuiop[]asdfghjkl;'\\zxcvbnm,./";
        String newword="";
        StringBuilder sb = new StringBuilder(newword);
        for (int i=0;i<word.length();i++){
            if (pos.equals("R")){
                int index=arr.indexOf(word.charAt(i));
                newword=new String (sb.append(arr.charAt(index-1)));}
            if (pos.equals("L")){
                int index=word.indexOf(word.charAt(i));
                sb.append(arr.charAt(index+1));}
        System.out.println(newword);}}}

import java.util.Scanner;

// A = 65 , Z = 90
// a = 97 , z = 122

public class Keyboard {
    public static void main(String[] args) {
        String shiftleft  = "SNVFRGHJOKL;,MP[WTDYIBECUX']";
        String normal     = "ABCDEFGHIJKLMNOPQRSTUVWXYZ;[";
        String shiftright = "'VXSWDFGUHJKNBIO]EARYCQZT/L]";
        Scanner sc = new Scanner(System.in);
        String l = sc.nextLine();
        String ll = sc.nextLine();
        if(l.equals("R")){
            for (int i = 0; i < ll.length(); i++) {
                int indexOf = normal.indexOf(ll.charAt(i));
                if(indexOf == -1){

                  indexOf = normal.toLowerCase().indexOf(ll.charAt(i));
                  System.out.print(shiftright.toLowerCase().charAt(indexOf));
                }else{
                  System.out.print(shiftright.charAt(indexOf));
                }
            }
            System.out.println();
        }else{
             for (int i = 0; i < ll.length(); i++) {
               int indexOf = normal.indexOf(ll.charAt(i));
                if(indexOf == -1){
                  indexOf = normal.toLowerCase().indexOf(ll.charAt(i));
                  System.out.print(shiftleft.toLowerCase().charAt(indexOf));
                }else{
                  System.out.print(shiftleft.charAt(indexOf));
                }
        }
    }
 }
}

import java.util.Scanner;

public class ProblemSolving {

	public static void main(String[] args)
	{

		readMoleMessage();

	}

	static void readMoleMessage()
	{
	Scanner scanner = new Scanner(System. in);
		String direction = scanner. nextLine();
		String shiftedMessage = scanner. nextLine();

	String row= "qwertyuiopAsdfghjkl;zxcvbnm,./";
		String OriginalMessage="";
		int originalIndex;
		char newChar;
	for (char c : shiftedMessage.toCharArray())
		{
		originalIndex = row.indexOf(c);
		newChar= (direction.equals("R"))? row.charAt(originalIndex-1) : row.charAt(originalIndex+1);
		OriginalMessage+=newChar;
		}
	System.out.println(OriginalMessage);
	}
}

import java.util.*;

public class cf474a {

    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);
        String n = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String l = "qqwertyuioaasdfghjklzzxcvbnm,.";
        String r = "wertyuioppsdfghjkl;;xcvbnm,.//";
//
//        System.out.println(n.charAt(r.indexOf('s')));
//        System.out.println(n.charAt(r.indexOf(';')));
//        System.out.println(n.charAt(r.indexOf(';')));
//        System.out.println(n.charAt(r.indexOf('u')));
//        System.out.println(n.charAt(r.indexOf('p')));
//        System.out.println(n.charAt(r.indexOf('i')));
//        System.out.println(n.charAt(r.indexOf('m')));
//        System.out.println(n.charAt(r.indexOf('r')));
//        System.out.println(n.charAt(r.indexOf('r')));
//        System.out.println(n.charAt(r.indexOf('f')));
//        System.out.println(n.charAt(r.indexOf('o')));
//        System.out.println(n.charAt(r.indexOf('d')));
//        System.out.println(n.charAt(r.indexOf(';')));
//        System.out.println(n.charAt(r.indexOf('p')));
//        System.out.println(n.charAt(r.indexOf('b')));
//        System.out.println(n.charAt(r.indexOf('r')));
//
        char a = input.next().charAt(0);

        String d = input.next();
        StringBuilder out = new StringBuilder();

        for (int i = 0; i < d.length(); i++) {

            if (a == 'R') {

                out.append(n.charAt(r.indexOf(d.charAt(i))));

            } else {
                out.append(n.charAt(l.indexOf(d.charAt(i))));
            }

        }

        System.out.println(out.toString());

    }

}

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		 StringBuffer s=new StringBuffer(" qwertyuiopasdfghjkl;zxcvbnm,./") ;
		 String r;
		 Scanner I=new Scanner(System.in);
       String p=I.nextLine();
		 r=I.nextLine();
		 StringBuffer str=new StringBuffer(r);
		 for(int i=1;i<=str.length();i++){
		  if(p=="R")
			 System.out.print(s.charAt(s.indexOf(str.charAt(i-1)+"")-1));
		  else
				 System.out.print(s.charAt(s.indexOf(str.charAt(i-1)+"")+1));

		 }
I.close();
	}
}

import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.StringTokenizer;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		TaskA solver = new TaskA();
		solver.solve(1, in, out);
		out.close();
	}
}

class TaskA {
    public void solve(int testNumber, InputReader in, PrintWriter out) {
        String a = "qwertyuiopasdfghjkl;zxcvbnm,";
        char[] l1 = a.toCharArray();
        if(in.next().equals("R")){
            char[] l4 = in.next().toCharArray();
            for(int i = 0; i < l4.length; i++){
                for(int j = 0; j < l1.length; j++){
                    if(l4[i] == l1[j]){
                        out.print(l1[j-1]);
                    }
                }
            }
        }
        else{
            char[] l4 = in.next().toCharArray();
            for(int i = 0; i < l4.length; i++){
                for(int j = 0; j < l1.length; j++){
                    if(l4[i] == l1[j]){
                        out.print(l1[j+1]);
                    }
                }
            }
        }
    }
}

class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 32768);
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

}

import java.util.Scanner;

public class Keyboard {
    public static void main(String[] args) {

          Scanner scr = new Scanner(System.in);

                int num=0;
                String s = scr.next();
                String input = scr.next();
                String key = "qwertyuiopasdfghjkl;zxcvbnm,./";
		String temp="";
		for(int i=0;i<input.length();i++){
                for(int j=0;j<key.length();j++){
                    if (input.charAt(i)==key.charAt(j)){
                        if (s.charAt(0)=='l'){
                          num=j+1;
                          if (num>key.length()){
                              num=key.length();
                              temp+=(key.charAt(num));
                          }
                          else
                              temp+=(key.charAt(num));
                        }
                        else {
                            num=j-1;
                        if (num<0){
                            num=0;
                        temp+=(key.charAt(num));
                            }
                        else
                            temp+=(key.charAt(num));
                        }
                }
                }
    }
                System.out.println(temp);
    }
}

import java.util.Scanner;

public class CF271A {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String c = sc.next();
		String next = sc.next();
		String q = "qwertyuiopasdfghjkl;zxcvbnm,./";
		String res = "";
		for (int i = 0; i < next.length(); i++){
			for (int j = 0; j < q.length(); j++){
				if (next.charAt(i) == q.charAt(j)){
					if (c == "R"){
						if (j+1 == 11 || j+1 == 21 || j+1 == 31){
							continue;
						}
						else {
							res += q.charAt(j+1);
						}
					}
					else if (j-1 == -1 || j-1 == 9 || j-1 == 19){
						continue;
					}
					else {
						res += q.charAt(j-1);
					}
				}
			}
		}
		System.out.println(res);
	}
}

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main
{

    public static void main(String[] args)
    {
        // Fast in-out
        MyScanner in = new MyScanner();
        PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

        // ***********************
        String board1 = "qwertyuiop";
        String board2 = "asdfghjkl;";
        String board3 = "zxcvbnm,./";

        String direction  = in.nextLine();
        String input = in.nextLine();

        StringBuilder output = new StringBuilder();
        for (int i = 0; i<input.length(); i++) {

            String str = String.valueOf(input.charAt(i));
            if (direction.equals("R")) {

                if (board1.contains(str)) {
                    int index = board1.indexOf(str);

                    if(index == (board1.length())) {
                        output.append(board1.charAt(index));
                    }
                    else {
                        output.append(board1.charAt(index - 1));
                    }
                }
                else if (board2.contains(str)) {
                    int index = board2.indexOf(str);

                    if(index == (board2.length())) {
                        output.append(board2.charAt(index));
                    }
                    else {
                        output.append(board2.charAt(index - 1));
                    }
                }
                else if (board3.contains(str)) {
                    int index = board3.indexOf(str);

                    if(index == (board3.length())) {
                        output.append(board3.charAt(index));
                    }
                    else {
                        output.append(board3.charAt(index - 1));
                    }
                }
            }
            else if (direction.equals("L")) {

                if (board1.contains(str)) {
                    int index = board1.indexOf(str);

                    if(index == 0) {
                        output.append(board1.charAt(index));
                    }
                    else {
                        output.append(board1.charAt(index + 1));
                    }
                }
                else if (board2.contains(str)) {
                    int index = board2.indexOf(str);

                    if(index == 0) {
                        output.append(board2.charAt(index));
                    }
                    else {
                        output.append(board2.charAt(index + 1));
                    }
                }
                else if (board3.contains(str)) {
                    int index = board3.indexOf(str);

                    if(index == 0) {
                        output.append(board3.charAt(index));
                    }
                    else {
                        output.append(board3.charAt(index + 1));
                    }
                }
            }

        }

        out.println(output.toString());
        // ***********************

        out.close();
    }

}

class MyScanner
{
    BufferedReader br;
    StringTokenizer st;

    public MyScanner()
    {
        br = new BufferedReader(new InputStreamReader(System.in), 32768);
        st = null;
    }

    public String next() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return st.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    String nextLine() {
        String str = "";
      try {
         str = br.readLine();
      } catch (IOException e) {
         e.printStackTrace();
      }
      return str;
    }
}

import java.util.Scanner;

public class A474 {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        String st = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] c = st.toCharArray();
        String s = sc.next();
        String str = sc.next();
        char [] ch = str.toCharArray();
        if(s.equals("R")){
            for(int i = 0;i < ch.length;i++) {
                for (int j = 0; j < c.length; j++) {
                    if(ch[i] == c[0]){
                        ch[i] = c[c.length - 1];
                    }else if (ch[i] == c[j]) {
                        ch[i] = c[j - 1];
                    }
                }
            }
        }
        String d = new String(ch);
        System.out.println(d);
    }
}

import java.util.Scanner;

public class Test{

	public static void main(String args[]){
            char[][] k ={{'q','w','e','r', 't','y','u','i','o','p'},{'a','s','d','f', 'g','h','j','k','l',';'},{'z','x','c','v', 'b','n','m',',','.','/'}};
Scanner input=new Scanner(System.in);
         String str =input.next();
         String s =input.next();
         int r=-1;
            if (str=="R") {
                r=1;
            }
            for (int y=0,i = 0;y<str.length()&&i < 3; i++) {
                for (int j = 0; j < k[i].length; j++) {
                    if (str.charAt(y)==k[i][j]) {
                        System.out.print(k[i][j+r]);
                    }
                }
            }
}}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        String letras = in.nextLine();
        String[] key = {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "z", "x", "c", "v", "b", "n", "m", ".", "/"};
        int ind = 0;
        String ans = "", indL = "";
        if (x.equals("R")) {
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind - 1];
            }
        }else{
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind + 1];
            }
        }
        System.out.println(ans);
}
}

import java.util.*;

public class Main {

    public static void main(String[] args) {
        HashMap<String, String> r = new HashMap<>();
        HashMap<String, String> l = new HashMap<>();

        String[] reg = "qwertyuiopasdfghjkl;zxcvbnm,./".split("");
        for (int i = 0; i < reg.length-1; i++) {
             r.put(reg[i+1], reg[i]);
        }
        for (int i = 1; i < reg.length; i++) {
            l.put(reg[i-1], reg[i]);
        }

        Scanner input = new Scanner(System.in);
        String k = input.nextLine();
        String[] in = input.nextLine().split("");
        System.out.println(k);

        if(k.equals("R")){
            for(String car: in){
                System.out.print(r.get(car));
            }
        }else{
            for(String car: in){
                System.out.print(l.get(car));
            }
        }

    }
}

import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

public class JavaApplication35 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
       String a=sc.next();
       String b=sc.next();

           for(int i=0; i<b.length();i++){
               if(a.equals("R"+" ")){
                   switch(b.charAt(i)){
                       case 'q':
                           out.print('w');
                           break;
                       case 'w':
                           out.print('e');
                           break;
                       case 'e':
                           out.print('r');
                           break;
                       case 'r':
                           out.print('t');
                           break;
                       case 't':
                           out.print('y');
                           break;
                       case 'y':
                           out.print('u');
                           break;
                       case 'u':
                           out.print('i');
                           break;
                       case 'i':
                           out.print('o');
                           break;
                       case 'o':
                           out.print('p');
                           break;
                       case 'p':
                           out.print('q');
                           break;
                       case 'a':
                           out.print('s');
                           break;
                       case 's':
                           out.print('d');
                           break;
                       case 'd':
                           out.print('f');
                           break;
                       case 'f':
                           out.print('g');
                           break;
                       case 'g':
                           out.print('h');
                           break;
                       case 'h':
                           out.print('j');
                           break;
                       case 'j':
                           out.print('k');
                           break;
                       case 'k':
                           out.print('l');
                           break;
                       case 'l':
                           out.print(';');
                           break;
                       case ';':
                           out.print('a');
                           break;
                       case 'z':
                           out.print('x');
                           break;
                       case 'x':
                           out.print('c');
                           break;
                       case 'c':
                           out.print('v');
                           break;
                       case 'v':
                           out.print('b');
                           break;
                       case 'b':
                           out.print('n');
                           break;
                       case 'n':
                           out.print('m');
                           break;
                       case 'm':
                           out.print(',');
                           break;
                       case ',':
                           out.print('.');
                           break;
                       case '.':
                           out.print('z');
                           break;

                   }
               }
               else{
                   switch(b.charAt(i)){
                       case 'q':
                           out.print('p');
                           break;
                       case 'w':
                           out.print('q');
                           break;
                       case 'e':
                           out.print('w');
                           break;
                       case 'r':
                           out.print('e');
                           break;
                       case 't':
                           out.print('r');
                           break;
                       case 'y':
                           out.print('t');
                           break;
                       case 'u':
                           out.print('y');
                           break;
                       case 'i':
                           out.print('u');
                           break;
                       case 'o':
                           out.print('i');
                           break;
                       case 'p':
                           out.print('o');
                           break;
                       case 'a':
                           out.print(';');
                           break;
                       case 's':
                           out.print('a');
                           break;
                       case 'd':
                           out.print('s');
                           break;
                       case 'f':
                           out.print('d');
                           break;
                       case 'g':
                           out.print('f');
                           break;
                       case 'h':
                           out.print('g');
                           break;
                       case 'j':
                           out.print('h');
                           break;
                       case 'k':
                           out.print('j');
                           break;
                       case 'l':
                           out.print('k');
                           break;
                       case ';':
                           out.print('l');
                           break;
                       case 'z':
                           out.print('.');
                           break;
                       case 'x':
                           out.print('z');
                           break;
                       case 'c':
                           out.print('x');
                           break;
                       case 'v':
                           out.print('c');
                           break;
                       case 'b':
                           out.print('v');
                           break;
                       case 'n':
                           out.print('b');
                           break;
                       case 'm':
                           out.print('n');
                           break;
                       case ',':
                           out.print('m');
                           break;
                       case '.':
                           out.print(',');
                           break;

                   }
               }
       }

     out.println(" ");

        out.flush();
    }

}
/*qwertyuiop
asdfghjkl;
zxcvbnm,./
*/

import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String LR = in.nextLine();
        String text = in.nextLine();
        StringBuilder sb =new StringBuilder();
        String lib = "qwertyuiopasdfghjkl;zxcvbnm,./";

        int offset = LR.equals("L") ? 1 : -1;
        for (int i = 0; i< text.length(); i++){
            int wrongIdx = lib.indexOf(text.charAt(i));
            if (wrongIdx == 0 || wrongIdx==text.length()-1){
                sb.append(lib.charAt(wrongIdx));
            }
            sb.append(lib.charAt(wrongIdx+offset));
        }
        System.out.println(sb.toString());
    }

}

/**
 * Created by Влад on 13.10.2014.
 */
import java.io.*;

public class Main {
    public static void main(String args[]){
        BufferedReader in;
        BufferedWriter out;
        char[] a={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};
        try{
            in=new BufferedReader(new InputStreamReader(System.in));
            out=new BufferedWriter(new OutputStreamWriter(System.out));
            String go=in.readLine(), s=in.readLine(), ans="";
            if (go.equals("R")){
                for (int i=0; i<s.length(); i++){
                    for (int j=0; j<30; j++){
                        if (a[j]==s.charAt(i)){
                            ans+=a[j-1];
                        }
                    }
                }
            } else{
                for (int i=1; i<=s.length(); i++){
                    for (int j=0; j<30; j++){
                        if (a[j]==s.charAt(i)){
                            ans+=a[j+1];
                        }
                    }
                }
            }
            out.write(ans);
            out.flush();
        } catch(Exception e){
        }
    }
}

import java.util.Scanner;

// A = 65 , Z = 90
// a = 97 , z = 122

public class Keyboard {
    public static void main(String[] args) {
        String normal     = "qwertyuiopasdfghjkl;zxcvbnm,./";
        Scanner sc = new Scanner(System.in);
        String startsWith = sc.nextLine();
        String line = sc.nextLine();
        if(startsWith.startsWith("L")){
            int length = line.length();
            for (int i = 0; i < length; i++) {
                int indexOf = normal.indexOf(line.charAt(i)+"");
                char charAt = normal.charAt(i+1);
                System.out.print(charAt);
            }
            System.out.println();
        }else if(startsWith.startsWith("R")) {
            int length = line.length();
            for (int i = 0; i < length; i++) {
                int indexOf = normal.indexOf(line.charAt(i)+"");
                int name = indexOf-1;
                char charAt = normal.charAt(name);
                System.out.print(charAt);
            }
            System.out.println();
        }

    }
}

import java.util.Scanner;
import java.util.Vector;

public class Main{
    public static void main(String lol[]){
        Scanner in = new Scanner(System.in);
        Vector<Character> v= new Vector<Character>();
        String dir = in.next();
        String s = in.next();
        String s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String f ="";
        for(int i=0;i<s1.length();i++){
            v.add(s1.charAt(i));
        }

        if(dir.equals("R")){
            //System.out.println("----");
            for(int i=0;i<s.length();i++){
                if(v.contains(s.charAt(i))){
                    int index = v.indexOf(s.charAt(i));
                    char temp = v.elementAt(index-1);
                    String t = "" + temp;
                    f = f+ t;
                }
            }
        }
        System.out.println(f);
        f = "";
    }
}

import java.io.*;
import java.util.*;

public class MainA {
    Scanner in;
    PrintWriter out;

    void solve() {
        String nap = in.nextLine();
        String s = in.nextLine();
        for (int i = 0; i < s.length(); i++) {
            char teck = proc(nap.charAt(0), s.charAt(i));
            out.print(teck);
        }
    }

    private char proc(char nap, char s) {
        // qwertyuiop
        // asdfghjkl;
        // zxcvbnm,./
        if (nap == 'R' || nap == 'r') {
            if (s == 'w') {
                return 'q';
            } else if (s == 'e') {
                return 'w';
            } else if (s == 'r') {
                return 'e';
            } else if (s == 't') {
                return 'r';
            } else if (s == 'y') {
                return 't';
            } else if (s == 'u') {
                return 'y';
            } else if (s == 'i') {
                return 'u';
            } else if (s == 'o') {
                return 'i';
            } else if (s == 'p') {
                return 'o';
            } else if (s == 's') {
                return 'a';
            } else if (s == 'd') {
                return 's';
            } else if (s == 'f') {
                return 'd';
            } else if (s == 'g') {
                return 'f';
            } else if (s == 'h') {
                return 'g';
            } else if (s == 'j') {
                return 'h';
            } else if (s == 'k') {
                return 'j';
            } else if (s == 'l') {
                return 'k';
            } else if (s == ';') {
                return 'l';
            } else if (s == '\'') {
                return ';';
            } else if (s == 'x') {
                return 'z';
            } else if (s == 'c') {
                return 'x';
            } else if (s == 'v') {
                return 'c';
            } else if (s == 'b') {
                return 'v';
            } else if (s == 'n') {
                return 'b';
            } else if (s == 'm') {
                return 'n';
            } else if (s == ',') {
                return 'm';
            } else if (s == '.') {
                return ',';
            } else if (s == '/') {
                return '.';
            }
        } else {
            // qwertyuiop
            // asdfghjkl;
            // zxcvbnm,./
            if (s == 'q') {
                return 'w';
            } else if (s == 'w') {
                return 'e';
            } else if (s == 'e') {
                return 'r';
            } else if (s == 'r') {
                return 't';
            } else if (s == 'y') {
                return 'y';
            } else if (s == 'y') {
                return 'u';
            } else if (s == 'u') {
                return 'i';
            } else if (s == 'i') {
                return 'o';
            } else if (s == 'o') {
                return 'p';
            } else if (s == 'a') {
                return 's';
            } else if (s == 's') {
                return 'd';
            } else if (s == 'd') {
                return 'f';
            } else if (s == 'f') {
                return 'g';
            } else if (s == 'g') {
                return 'h';
            } else if (s == 'h') {
                return 'j';
            } else if (s == 'j') {
                return 'k';
            } else if (s == 'k') {
                return 'l';
            } else if (s == 'l') {
                return ';';
            } else if (s == ';') {
                return '\'';
            } else if (s == 'z') {
                return 'x';
            } else if (s == 'x') {
                return 'c';
            } else if (s == 'c') {
                return 'v';
            } else if (s == 'v') {
                return 'b';
            } else if (s == 'b') {
                return 'n';
            } else if (s == 'n') {
                return 'm';
            } else if (s == 'm') {
                return ',';
            } else if (s == ',') {
                return '.';
            } else if (s == '/') {
                return '.';
            }
        }

        return 'a';
    }

    void run() {
        in = new Scanner(System.in);
        out = new PrintWriter(System.out);
        try {
            solve();
        } finally {
            out.close();
        }
    }

    public static void main(String[] args) {
        new MainA().run();
    }

}

import java.util.*;

public class Krot{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		char q = '0';
		String e = " ";
		String r = in.next();
		String text = in.next();
		String test = "qwertyuiopasdfghjkl;zxcvbnm,./";
		char[]arr = new char[text.length()];
		for(int j = 0; j < arr.length; j++){
			arr[j] = text.charAt(j);
		}

		for(int z = 0; z <= arr.length - 1; z++){
			if(test.contains(arr[z] + "") && r.equals("R")){
				q = arr[z];
				for(int m = 0; m <= test.length() - 1; m++){
					if(q  == test.charAt(m)){
							e += test.charAt(m - 1);
					}
				}
			}else if(test.contains(arr[z] + "") && r.equals("L"))
				q = arr[z];
				for(int m = 0; m <= test.length() - 1; m++){
					if(q  == test.charAt(m)){
							e += test.charAt(m + 1);
					}
				}
		}
		System.out.println(e);
}
}

import java.util.Scanner;

public class Codeforces_474A {

	public static void main(String[] args)
    {

		char keyboard[] = new char[]{'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};

        Scanner scanIn = new Scanner(System.in);
        String direction;
        direction = scanIn.nextLine();
        String testCase;
        testCase = scanIn.nextLine();
        String output = "";
        int pos = direction == "R" ? 1 : -1;
        int check;
        for (int i = 0; i< testCase.length(); i++)
        	{
        		for (int j=0;j<keyboard.length;j++)
        			if (testCase.charAt(i)==keyboard[j])
        			{
        				check = j+pos >= keyboard.length && pos == 1 ? keyboard.length-1 : j+pos;
        				check = j+pos < 0  && pos == -1 ? 0 : j+pos;
        				output += keyboard[check];
        			}
        	}

        System.out.println(output);
    	scanIn.close();
    }
}

import java.util.Scanner;

public class A474 {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        String st = "qwertyuiopasdfghjkl;zxcvbnm,./";
        char[] c = st.toCharArray();
        String s = sc.next();
        String str = sc.next();
        char [] ch = str.toCharArray();
        if(s.equals("R")){
            for(int i = 0;i < ch.length;i++){
                if(ch[i] == c[0]){
                    ch[i] = c[c.length - 1];
                }
            }
            for(int i = 0;i < ch.length;i++) {
                for (int j = 1; j < c.length; j++) {
                    if (ch[i] == c[j]) {
                        ch[i] = c[j - 1];
                    }
                }
            }
        }else if(s.equals("L")){
            for(int i = 0;i < ch.length;i++){
                if(ch[i] == c[c.length - 1]){
                    ch[i] = c[0];
                }
            }
            for(int i = 0;i < ch.length;i++) {
                for (int j = 0; j < c.length - 1; j++) {
                    if (ch[i] == c[j]) {
                        ch[i] = c[j + 1];
                    }
                }
            }
        }
        String d = new String(ch);
        System.out.println(d);
    }
}

import java.util.*;
public class A474{
	static char R(char c){
		switch(c){
			case 's':
				return 'a';
			case 'n':
				return 'b';
			case 'v':
				return 'c';
			case 'f':
				return 'd';
			case 'r':
				return 'e';
			case 'g':
				return 'f';
			case 'h':
				 return 'g';
			case 'j':
				return 'h';
			case 'o':
				return 'i';
			case 'k':
				return 'j';
			case 'l':
				return 'k';
			case ';':
				return 'l';
			case ',':
				return 'm';
			case 'm':
				return 'n';
			case 'p':
				return 'o';
			case '[':
				return 'p';
			case 'w':
				return 'q';
			case 't':
				return 'r';
			case 'd':
				return 's';
			case 'y':
				return 't';
			case 'i':
				return 'u';
			case 'b':
				return 'v';
			case 'e':
				return 'w';
			case 'c':
				return 'x';
			case 'u':
				return 'y';
			case 'x':
				return 'z';
		}
		return 'r';
	}

	static char L(char c){
		switch(c){
			//case 's':return 'a';
			case 'v':
				return 'b';
			case 'x':
				return 'c';
			case 's':
				return 'd';
			case 'w':
				return 'e';
			case 'd':
				return 'f';
			case 'f':
				 return 'g';
			case 'g':
				return 'h';
			case 'u':
				return 'i';
			case 'h':
				return 'j';
			case 'j':
				return 'k';
			case 'k':
				return 'l';
			case 'n':
				return 'm';
			case 'b':
				return 'n';
			case 'i':
				return 'o';
			case 'o':
				return 'p';
			//case '	':return 'q';
			case 'e':
				return 'r';
			case 'a':
				return 's';
			case 'r':
				return 't';
			case 'y':
				return 'u';
			case 'c':
				return 'v';
			case 'q':
				return 'w';
			case 'z':
				return 'x';
			case 't':
				return 'y';
			//case '':	return 'z';
		}
		return 'a';
	}

	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		char x=sc.next().charAt(0);
		String s=sc.next();
		char a[]=s.toCharArray();
		if(x=='r'||x=='R'){
			for(int i=0; i<a.length; i++){
				char temp=a[i];
				a[i]=R(temp);
			}
		}
		if(x=='l'||x=='L'){
			for(int i=0; i<a.length; i++){
				char temp=a[i];
				a[i]=L(temp);
			}
		}
		String res=String.valueOf(a);
		System.out.println(res);
	}
}

import java.util.*;
import java.io.*;
public class Keyboard {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String x = "qwertyuiop\n"
                + "asdfghjkl;\n"
                + "zxcvbnm,\n";

        ArrayList<Character> arr = new ArrayList<>();
        for (int i = 0; i < x.length(); i++) {
            arr.add(x.charAt(i));
        }

        char c = (char)br.read();
        String str = br.readLine();

        for(int i = 0; i < str.length();i++) {
            if(c == 'R') {
                System.out.print(arr.get(arr.indexOf(str.charAt(i)) - 1));
            }
            else {
                System.out.print(arr.get(arr.indexOf(str.charAt(i)) - 1));
            }
        }
    }
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
public class Main
{
    public static void main(String args[])throws Exception
    {
       BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
       char temp=(char)br.read();
       br.skip(1);

       String s=br.readLine();

       int l=s.length();
       String k="qwertyuiopasdfghjkl;zxcvbnm,./";
       char k1[]=k.toCharArray();
       char u[]=s.toCharArray();
       int flag=0;
       if(temp=='R')
           flag=-1;
       else
           flag=1;
       for(int i=0;i<l;i++)
       {
           int t=k.indexOf(u[i]);
           u[i]=k1[t+flag];
       }
       for(int i=0;i<l;i++)
           System.out.print(u[i]);
    }
}

import java.io.*;
public class keyboard
{
    static BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    public static void main(String args[])throws IOException
    {

        char ch,c;
        String s,s1="";
        char ch1[]={'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l',';','z','x','c','v','b','n','m',',','.','/'};
        int i,j,l;
        ch=(char)in.read();
        s=in.readLine();
        l=s.length();
        for(i=0;i<l;i++)
        {
            c=s.charAt(i);
            for(j=0;j<30;j++)
            {
                if(ch1[j]==c)
                 break;
                }
            if(ch=='L')
             s1+=ch1[j-1];
            else
             s1+=ch1[j+1];
            }

    }
}

import java.util.Scanner;

public class Keyboard {
    public static void main(String[] args) {

          Scanner scr = new Scanner(System.in);

                int num=0;
                String s = scr.next();
                String input = scr.next();
                String key = "qwertyuiopasdfghjkl;zxcvbnm,./";
		String temp="";
		for(int i=0;i<input.length();i++){
                for(int j=0;j<key.length();j++){
                    if (input.charAt(i)==key.charAt(j)){
                        if (s.charAt(0)=='l'){
                          num=j+1;
                          if (num>key.length()){
                              num=key.length();
                              temp+=(key.charAt(num));
                          }
                          else
                              temp+=(key.charAt(num));
                        }
                        else {
                            num=j-1;
                        if (num<0){
                            num=0;
                        temp+=(key.charAt(num));
                            }
                        else
                            temp+=(key.charAt(num));
                        }
                }
                }
    }
                System.out.println(temp);
    }
}

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class A474 {
    public static void main(String[] args) {

        String key1 = "qwertyuiop";
        String key2 = "asdfghjkl;";
        String key3 = "zxcvbnm,./";
        char []keyboard1 = key1.toCharArray();
        char []keyboard2 = key2.toCharArray();
        char []keyboard3 = key3.toCharArray();
        char [][]keyboard = new char[3][10];

        for(int i=0;i<10;i++)
            keyboard[0][i] = keyboard1[i];
        for(int i=0;i<10;i++)
            keyboard[1][i] = keyboard2[i];
        for(int i=0;i<10;i++)
            keyboard[2][i] = keyboard3[i];

        String c,s;
        Scanner in = new Scanner(System.in);
        c = in.next();
        s = in.next();
        char []word = s.toCharArray();
        List<Character> list = new ArrayList<>();

        if(c.equalsIgnoreCase("L"))
            for(int i=0;i<word.length;i++)
                for(int j=0;j<keyboard.length;j++)
                    for(int k=0;k<keyboard[j].length - 1;k++)
                        if (word[i] == keyboard[j][k])
                            list.add(keyboard[j][k + 1]);

        if(c.equalsIgnoreCase("R"))
            for(int i=0;i<word.length;i++)
                for(int j=0;j<keyboard.length;j++)
                    for(int k=1;k<keyboard[j].length;k++)
                        if(word[i] == keyboard[j][k])
                            list.add(keyboard[j][k-1]);

        System.out.println(list.toString());

    }
}

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String ch = sc.next();
        String str = sc.next();

        System.out.println(ch + " " + str);

        String bas = "qwertyuiopasdfghjkl;zxcvbnm,./";

        Map<Character, String> map = new HashMap<>();

        map.put('q', " w");
        map.put('/', ". ");

        for (int i = 1; i < bas.length()-1; i++) {
            String s = "" + bas.charAt(i-1)+ bas.charAt(i+1);
            map.put(bas.charAt(i), s);
        }

        int pos = 0;

        if (ch.charAt(0) == 'L') {
            pos = 1;
        }

        for (int i = 0; i< str.length(); i++) {
            System.out.print(map.get(str.charAt(i)).charAt(pos));
        }

    }
}

import java.util.Scanner;

public class Test{

	public static void main(String args[]){
            char[] k ={'q','w','e','r', 't','y','u','i','o','p','a','s','d','f', 'g','h','j','k','l',';','z','x','c','v', 'b','n','m',',','.','/'};
Scanner input=new Scanner(System.in);
         String str =input.next();
         String s =input.next();
         int r=-1;
            if (str=="R") {
                r=1;
            }
            for (int i = 0;i < s.length(); i++) {
                for (int j = 0; j < k.length; j++) {
                    if (s.charAt(i)==k[j]) {
                        if (j==k.length&&r==1||j==0&&r==-1) {
                            System.out.print(k[j]);
                        }else
                        System.out.print(k[j+r]);
                    }
                }
            }
}}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String x = in.nextLine();
        String letras = in.nextLine();
        String[] key = {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "z", "x", "c", "v", "b", "n", "m", ".", "/"};
        int ind = 0;
        String ans = "", indL = "";
        if (x.equals("R")) {
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind - 1];
            }
        }else{
            for (int i = 0; i < letras.length(); i++) {
                indL="";
                indL = letras.charAt(i) + "";
                for (int j = 0; j < key.length; j++) {
                    if (key[j].equals(indL)) {
                        ind = j;
                        break;
                    }
                }
                ans += key[ind + 1];
            }
        }
        System.out.println(ans);
}
}

import java.io.*;
import java.lang.*;
import java.util.*;

public class sol
{
  	public static void main (String[] args)throws IOException{
		//code

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		char[] c = br.readLine().trim().toCharArray();
		char[] s = br.readLine().trim().toCharArray();

		char s1[] = {'q','w','e','r','t','y','u','i','o','p'};
		char s2[] = {'a','s','d','f','g','h','j','k','l',';'};
		char[] s3 = {'z','x','c','v','b','n','m',',','.','/'};
		if(c[0] =='L')
    {
        for(int i=0; i<s.length; i++)
        {
            for(int j=9; j>=0; j--)
            {
                if(s[i]==s1[j])
                {
                    s[i]=s1[(j+1)%9];
                }
                else if(s[i]==s2[j])
                {
                    s[i]=s2[(j+1)%9];
                }
                else if(s[i]==s3[j])
                {
                    s[i]=s3[(j+1)%9];
                }
            }
        }
    }
    else if(c[0] =='R')
    {

        for(int i=0; i<s.length; i++)
        {
            for(int j=0; j<10; j++)
            {
                if(s[i]==s1[j])
                {
                    s[i]=s1[j-1];
                }
                else if(s[i]==s2[j])
                {
                    s[i]=s2[j-1];
                }
                else if(s[i]==s3[j])
                {
                    s[i]=s3[j-1];
                }
            }
        }
    }
		     System.out.println(s);

    }

}

import java.util.Scanner;

public class Test{

	public static void main(String args[]){
            char[] k ={'q','w','e','r', 't','y','u','i','o','p','a','s','d','f', 'g','h','j','k','l',';','z','x','c','v', 'b','n','m',',','.','/'};
Scanner input=new Scanner(System.in);
         String str =input.next();
         String s =input.next();
         int r=1;
            if (str=="R") {
                r=-1;
            }
            for (int i = 0;i < s.length(); i++) {
                for (int j = 0; j < k.length; j++) {
                    if (s.charAt(i)==k[j]) {
                        if (j==k.length&&r==1||j==0&&r==-1) {
                            System.out.print(k[j]);
                        }else
                        System.out.print(k[j+r]);
                    }
                }
            }
}}

//package com.company;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<Character> l=new ArrayList<Character>();
        l.add('q');l.add('w');l.add('e');l.add('r');l.add('t');l.add('y');l.add('u');l.add('i');l.add('o');l.add('p');

        l.add('a');l.add('s');l.add('d');l.add('f');l.add('g');l.add('h');l.add('j');l.add('k');l.add('l');l.add(';');l.add('z');l.add('x');

        l.add('c');l.add('v');l.add('b');l.add('n');l.add('m');l.add(',');l.add('.');l.add('/');
        String n =sc.next();
        String i =sc.next();

        if (n=="R") {
                for (int y=0;y<i.length();y++) {

                    System.out.print(l.get(l.indexOf(i.charAt(y))-1));
                }
             }
        else if(n=="L") {
            for (int y=0;y<i.length();y++){
                System.out.print(l.get(l.indexOf(i.charAt(y))+1));

            }
        }
    }
        }

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Hope {
    public static void main(String[] args) throws IOException {
        ArrayList<String> l1=new ArrayList<String>();
        ArrayList<String> l2=new ArrayList<String>();
        ArrayList<String> l3=new ArrayList<String>();

        l1.add("q");
        l1.add("e");
        l1.add("r");
        l1.add("t");
        l1.add("y");
        l1.add("u");
        l1.add("i");
        l1.add("o");
        l1.add("p");

        l2.add("a");
        l2.add("s");
        l2.add("d");
        l2.add("f");
        l2.add("g");
        l2.add("h");
        l2.add("j");
        l2.add("k");
        l2.add("l");
        l2.add(";");

        l3.add("z");
        l3.add("x");
        l3.add("c");
        l3.add("v");
        l3.add("b");
        l3.add("n");
        l3.add("m");
        l3.add(",");
        l3.add(".");
        l3.add("/");

        BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
        String c= b.readLine();
        String ligne2=b.readLine();
        int xx=0;
        if(c.equals("R"))
            xx=-1;
        else
            xx=1;
        String ligne3=new String();
        for (int i = 0; i < ligne2.length(); i++) {

            if(ligne2.charAt(i)=='z'&& xx==-1)
                System.out.print("x");
            else
                if(ligne2.charAt(i)=='q'&& xx==-1)
                System.out.print("w");
                else

                        if(ligne2.charAt(i)=='a'&& xx==-1)
                        System.out.print("s");
                        else
                            if(ligne2.charAt(i)=='p'&&xx==1)
                            System.out.print("o");
                            else
                                if(ligne2.charAt(i)=='/'&&xx==1)
                                System.out.print(".");
                                else
                                    if(ligne2.charAt(i)==';'&&xx==1)
                                    System.out.print("l");

                                    else
            if(l1.indexOf(""+ligne2.charAt(i))!=-1)
            {
                System.out.print(l1.get(l1.indexOf(""+ligne2.charAt(i))+xx));
            }
            else
                if(l2.indexOf(""+ligne2.charAt(i))!=-1)
                {
                    System.out.print(l2.get(l2.indexOf(""+ligne2.charAt(i))+xx));
                }
                else
                    if(l3.indexOf(""+ligne2.charAt(i))!=-1)
                    {
                        System.out.print(l3.get(l3.indexOf(""+ligne2.charAt(i))+xx));
                    }

        }

    }

}

import java.io.*;
import java.util.*;

public class MainA {
    Scanner in;
    PrintWriter out;

    void solve() {
        String nap = in.nextLine();
        String s = in.nextLine();
        for (int i = 0; i < s.length(); i++) {
            char teck = proc(nap.charAt(0), s.charAt(i));
            out.print(teck);
        }
    }

    private char proc(char nap, char s) {
        // qwertyuiop
        // asdfghjkl;
        // zxcvbnm,./
        if (nap == 'R' || nap == 'r') {
            if (s == 'w') {
                return 'q';
            } else if (s == 'e') {
                return 'w';
            } else if (s == 'r') {
                return 'e';
            } else if (s == 't') {
                return 'r';
            } else if (s == 'y') {
                return 't';
            } else if (s == 'u') {
                return 'y';
            } else if (s == 'i') {
                return 'u';
            } else if (s == 'o') {
                return 'i';
            } else if (s == 'p') {
                return 'o';
            } else if (s == 's') {
                return 'a';
            } else if (s == 'd') {
                return 's';
            } else if (s == 'f') {
                return 'd';
            } else if (s == 'g') {
                return 'f';
            } else if (s == 'h') {
                return 'g';
            } else if (s == 'j') {
                return 'h';
            } else if (s == 'k') {
                return 'j';
            } else if (s == 'l') {
                return 'k';
            } else if (s == ';') {
                return 'l';
            } else if (s == '\'') {
                return ';';
            } else if (s == 'x') {
                return 'z';
            } else if (s == 'c') {
                return 'x';
            } else if (s == 'v') {
                return 'c';
            } else if (s == 'b') {
                return 'v';
            } else if (s == 'n') {
                return 'b';
            } else if (s == 'm') {
                return 'n';
            } else if (s == ',') {
                return 'm';
            } else if (s == '.') {
                return ',';
            } else if (s == '/') {
                return '.';
            }
        } else {
            // qwertyuiop
            // asdfghjkl;
            // zxcvbnm,./
            if (s == 'q') {
                return 'w';
            } else if (s == 'w') {
                return 'e';
            } else if (s == 'e') {
                return 'r';
            } else if (s == 'r') {
                return 't';
            } else if (s == 't') {
                return 'y';
            } else if (s == 'y') {
                return 'u';
            } else if (s == 'u') {
                return 'i';
            } else if (s == 'i') {
                return 'o';
            } else if (s == 'o') {
                return 'p';
            } else if (s == 'a') {
                return 's';
            } else if (s == 's') {
                return 'd';
            } else if (s == 'd') {
                return 'f';
            } else if (s == 'f') {
                return 'g';
            } else if (s == 'g') {
                return 'h';
            } else if (s == 'h') {
                return 'j';
            } else if (s == 'j') {
                return 'k';
            } else if (s == 'k') {
                return 'l';
            } else if (s == 'l') {
                return ';';
            } else if (s == ';') {
                return '\'';
            } else if (s == 'z') {
                return 'x';
            } else if (s == 'x') {
                return 'c';
            } else if (s == 'c') {
                return 'v';
            } else if (s == 'v') {
                return 'b';
            } else if (s == 'b') {
                return 'n';
            } else if (s == 'n') {
                return 'm';
            } else if (s == 'm') {
                return ',';
            } else if (s == ',') {
                return '.';
            } else if (s == '/') {
                return '.';
            }
        }

        return 'a';
    }

    void run() {
        in = new Scanner(System.in);
        out = new PrintWriter(System.out);
        try {
            solve();
        } finally {
            out.close();
        }
    }

    public static void main(String[] args) {
        new MainA().run();
    }

}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class contest {

	public static void main(String[] args) throws IOException {
	String one = "qwertyuiop";
	String two = "asdfghjkl;";
	String three = "zxcvbnm,./";
	String word = "";
	BufferedReader bf  = new BufferedReader(new InputStreamReader(System.in));
	String position = bf.readLine();
	String shift = bf.readLine();
	for(int i =0; i<shift.length(); i++){
		char x = shift.charAt(i);
		int pos = one.indexOf("" + x);

		if(pos>0){
			if(position.equals("R")){
				word+=one.charAt(pos-1);
			}
			else{
				word+=one.charAt(pos+1);
			}
		}
			else{
				 pos = two.indexOf("" + x);

				if(pos>0){
					if(position.equals("R")){
						word+=two.charAt(pos-1);}
					else{
						word+=two.charAt(pos+1);
					}

			}
				else{
				 pos = three.indexOf("" + x);
				 if(position.equals("R")){
						word+=three.charAt(pos-1);}
					else{
						word+=three.charAt(pos+1);
					}
				}

		}
	}
	System.out.println(word);
	}

}

import java.util.ArrayList;
import java.util.Scanner;

public class TEMP {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		ArrayList<Character> arr = new ArrayList<>();
		arr.add('q');
		arr.add('w');
		arr.add('e');
		arr.add('r');
		arr.add('t');
		arr.add('y');
		arr.add('u');
		arr.add('i');
		arr.add('o');
		arr.add('p');
		arr.add('a');
		arr.add('s');
		arr.add('d');
		arr.add('f');
		arr.add('g');
		arr.add('h');
		arr.add('j');
		arr.add('k');
		arr.add('l');
		arr.add(';');
		arr.add('z');
		arr.add('x');
		arr.add('c');
		arr.add('v');
		arr.add('b');
		arr.add('n');
		arr.add('m');
		arr.add(',');
		arr.add('.');
		arr.add('/');

		String s = sc.nextLine();
		String in  = sc.nextLine();
		String out="";
		for(int i = 0 ; i<in.length();i++){
			char c = in.charAt(i);
			int index = arr.indexOf(c);
			if(s=="R"){
				if(index!=arr.size()-1)
				out+=arr.get(index+1);
				else
					out+=c;
			}
			else{
		//		System.out.println(c);
				if(index!=0)
				out+=arr.get(index-1);
				else
					out+=c;
		}
		}
		System.out.println(out);

	}
}

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class helloWorld {
    public static void main(String[] args) throws Exception {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String direction = in.readLine();
        char word[] = in.readLine().toCharArray();
        char Characters[] = "qwertyuiopasdfghjkl;zxcvbnm,./".toCharArray();
        HashMap<Character, Integer> map = new HashMap<>();
        int len = word.length;
        String ans = "";
        for (int i = 0; i < Characters.length; i++) {
            map.put(Characters[i], i);
        }

        if (direction.equals("R")) {
            for (int i = 0; i < len; i++) {
                int idx = map.get(word[i]);
                ans += Characters[(idx - 1 < 0) ? 0 : idx - 1];
            }
        } else {
            for (int i = 0; i < len; i++) {
                int idx = map.get(Characters[i]);
                ans += Characters[(idx + 1 == Characters.length) ? idx : idx + 1];
            }
        }
        System.out.println(ans);
    }
}

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class TA {

	public void solve(String a, String b) {
		String[] t = {
				"1234567890-=",
				"qwertyuiop[]\\,",
				"asdfghjkl;'",
				"zxcvbnm,./"
		};

		StringBuffer ans = new StringBuffer("");
		int n = b.length();
		for (int i = 0; i < n; i ++) {
			for (int j = 0; j < 4; j ++) {
				int x = t[j].indexOf(b.charAt(i));
				if (x != -1) {
					if ("L".equals(a))
						ans.append(t[j].charAt(x + 1));
					else
						ans.append(t[j].charAt(x - 1));
					break;
				}
			}
		}

		System.out.println(ans.toString());
	}
	public static void main(String[] args) {
		FastScanner in = new FastScanner();
		new TA().solve(in.nextToken(), in.nextToken());
	}
	static class FastScanner {

		BufferedReader br;
		StringTokenizer st;

		public FastScanner(String s) {
			try {
				br = new BufferedReader(new FileReader(s));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			}
		}

		public FastScanner() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String nextToken() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(nextToken());
		}

		long nextLong() {
			return Long.parseLong(nextToken());
		}

		double nextDouble() {
			return Double.parseDouble(nextToken());
		}

	}

}

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.StringTokenizer;

/*07:05:45PM

 String x =sc.next();
 char inp [] = x.toCharArray();
 SimpleDateFormat displayFormat = new SimpleDateFormat("HH:mm");
 SimpleDateFormat parseFormat = new SimpleDateFormat("hh:mm a");
 Date date = parseFormat.parse(x.substring(0, 5)+" "+x.substring(8, 10));
 System.out.println(displayFormat.format(date)+":"+x.substring(6, 8));
 */

public class Main {
	;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String c = sc.nextLine();
		String s = sc.nextLine();
		String ref = "/qwertyuiopasdfghjkl;zxcvbnm,./q";
		if (c == "L") {
			for (int i = 0; i < s.length(); i++) {
				char target = s.charAt(i);
				for (int j = 0; j < ref.length(); j++) {
					if (target == ref.charAt(j)) {
						System.out.print(ref.charAt(j + 1));
						break;
					}
				}
			}

		} else {
			for (int i = 0; i < s.length(); i++) {
				char target = s.charAt(i);
				for (int j = 0; j < ref.length(); j++) {
					if (target == ref.charAt(j)) {

						System.out.print(ref.charAt(j- 1));
						break;
					}
				}
			}

		}
	}

}

class Triple {
	long x, y, z;

	public Triple(long a, long b, long c) {
		x = a;
		y = b;
		z = c;
	}
}

class Pair implements Comparable<Pair> {
	String t;
	String a;

	Pair(String f, String b) {
		t = f;
		a = b;
	}

	@Override
	public int compareTo(Pair o) {
		// TODO Auto-generated method stub
		return a.compareTo(o.a) == 0 ? t.compareTo(o.t) : a.compareTo(o.a);
	}

}

class Scanner {
	StringTokenizer st;
	BufferedReader br;

	public Scanner(InputStream s) {
		br = new BufferedReader(new InputStreamReader(s));
	}

	public String next() throws IOException {
		while (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(br.readLine());
		return st.nextToken();
	}

	public int nextInt() throws IOException {
		return Integer.parseInt(next());
	}

	public long nextLong() throws IOException {
		return Long.parseLong(next());
	}

	public String nextLine() throws IOException {
		return br.readLine();
	}

	public double nextDouble() throws IOException {
		String x = next();
		StringBuilder sb = new StringBuilder("0");
		double res = 0, f = 1;
		boolean dec = false, neg = false;
		int start = 0;
		if (x.charAt(0) == '-') {
			neg = true;
			start++;
		}
		for (int i = start; i < x.length(); i++)
			if (x.charAt(i) == '.') {
				res = Long.parseLong(sb.toString());
				sb = new StringBuilder("0");
				dec = true;
			} else {
				sb.append(x.charAt(i));
				if (dec)
					f *= 10;
			}
		res += Long.parseLong(sb.toString()) / f;
		return res * (neg ? -1 : 1);
	}

	public boolean ready() throws IOException {
		return br.ready();
	}

}

import java.util.Arrays;
import java.util.Scanner;

public class CodeForces {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String direction = scanner.next();
        String writtenText = scanner.next();
        String chars = "qwertyuiopasdfghjkl;zxcvbnm,./";
        String result = "";

        for (int i = 0; i < writtenText.length(); i++) {
            char next = writtenText.charAt(i);
            int index = chars.indexOf(next);
            if (index != 0 && index != chars.length() -1){
                if(direction.equals("R")){
                    result += chars.charAt(index - 1);
                }else{
                    result += chars.charAt(index + 1);
                }
            }else{
                result += chars.charAt(index);
            }

        }

        System.out.println(result);

    }

    public static boolean inArray(int element, int[] array){
        for (int i : array) {
            if(i == element){
                return true;
            }
        }
        return false;
    }

}

import java.util.Scanner;

public class Keyboard {

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int w=0;
        String q=sc.nextLine();

        if(q.charAt(0)=='L'){
            w=1;

        }else
            w=-1;

        System.out.println(w);
        char a[][]={{'q','w','e','r','t','y','u','i','o','p'},
            {'a','s','d','f','g','h','j','k','l',';'},
            {'z','x','c','v','b','n','m',',','.','/'}};

        String main=sc.nextLine();

        for (int i = 0; i < main.length(); i++) {
            char b=main.charAt(i);
            for (int j = 0; j < 3; j++) {
                for (int k = 0; k < 10; k++) {
                    if(b==a[j][k]){

                        System.out.print(a[j][k+w]);
                        break;
                    }

                }

            }

        }

    }

}

import java.util.*;

public class Keyboard {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    String adjustment = input.nextLine();
    char[] line = input.nextLine().toCharArray();

    HashMap<Character, Character> right = new HashMap<Character, Character>();
    HashMap<Character, Character> left = new HashMap<Character, Character>();

    if (adjustment.equals("L")) {
      right.put('a', 's');
      right.put('s','d');
      right.put('d','f');
      right.put('f','g');
      right.put('g','h');
      right.put('h','j');
      right.put('j','k');
      right.put('k','l');
      right.put('l',';');
      right.put('q','w');
      right.put('w','e');
      right.put('e','r');
      right.put('r','t');
      right.put('t','y');
      right.put('y','u');
      right.put('u','i');
      right.put('i','o');
      right.put('o','p');
      right.put('p','[');
      right.put('z','x');
      right.put('x','c');
      right.put('c','v');
      right.put('v','b');
      right.put('b','n');
      right.put('n','m');
      right.put('m',',');
      right.put('.',',');

      StringBuilder sb = new StringBuilder();
      for (char c : line) {
        sb.append(right.get(c));
      }
      System.out.println(sb.toString());
    } else {
      left.put('w', 'q');
      left.put('e','w');
      left.put('r','e');
      left.put('t','r');
      left.put('y','t');
      left.put('u','y');
      left.put('i','u');
      left.put('o','i');
      left.put('p','o');
      left.put('[','p');
      left.put('s','a');
      left.put('d','s');
      left.put('f','d');
      left.put('g','f');
      left.put('h','g');
      left.put('j','h');
      left.put('k','j');
      left.put('l','k');
      left.put(';','l');
      left.put('x','z');
      left.put('c','x');
      left.put('v','c');
      left.put('b','v');
      left.put('n','b');
      left.put('m','n');
      left.put(',','m');
      left.put('.',',');

      StringBuilder sb = new StringBuilder();
      for (char c : line) {
        sb.append(left.get(c));
      }
      System.out.println(sb.toString());

    }
  }
}

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		 StringBuffer s=new StringBuffer(" qwertyuiopasdfghjkl;zxcvbnm,./") ;
		 String r;
		 Scanner I=new Scanner(System.in);
       String p=I.nextLine();
    r=I.nextLine();
		 StringBuffer str=new StringBuffer();
		 for(int i=1;i<=str.length();i++){
		  if(p.equals("R"))
			 System.out.println(s.charAt(s.indexOf(str.charAt(i-1)+"")-1));
		  else
				 System.out.println(s.charAt(s.indexOf(str.charAt(i-1)+"")+1));

		 }
	}
}