#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k;
  char str[109], str1[109][109], ch, res[109];
  i = 1;
  strcpy(str1[0], "qwertyuiop");
  strcpy(str1[1], "asdfghjkl;");
  strcpy(str1[2], "zxcvbnm,./");
  scanf("%c", &ch);
  int ind = 0, len, f = -1;
  if (ch == 'L') {
    scanf(" %s", str);
    len = strlen(str);
    for (i = 0; i < len; i++) {
      f = -1;
      for (j = 0; j < 10; j++) {
        if (str[i] == str1[0][j]) {
          res[ind++] = str1[0][j + 1];
          f = 0;
          break;
        }
      }
      if (f == -1) {
        for (j = 0; j < 10; j++) {
          if (str[i] == str1[1][j]) {
            res[ind++] = str1[1][j + 1];
            f = 1;
            break;
          }
        }
      }
      if (f == -1) {
        for (j = 0; j < 10; j++) {
          if (str[i] == str1[2][j]) {
            res[ind++] = str1[2][j + 1];
            f = 2;
            break;
          }
        }
      }
    }
    res[ind] = NULL;
    printf("%s\n", res);
  } else if (ch == 'R') {
    scanf(" %s", str);
    len = strlen(str);
    for (i = 0; i < len; i++) {
      f = -1;
      for (j = 0; j < 10; j++) {
        if (str[i] == str1[0][j]) {
          res[ind++] = str1[0][j - 1];
          f = 0;
          break;
        }
      }
      if (f == -1) {
        for (j = 0; j < 10; j++) {
          if (str[i] == str1[1][j]) {
            res[ind++] = str1[1][j - 1];
            f = 1;
            break;
          }
        }
      }
      if (f == -1) {
        for (j = 0; j < 10; j++) {
          if (str[i] == str1[2][j]) {
            res[ind++] = str1[2][j - 1];
            f = 2;
            break;
          }
        }
      }
    }
    res[ind] = NULL;
    printf("%s\n", res);
  }
  return 0;
}
