#include <bits/stdc++.h>
int main() {
  char a[] = "qwertyuiop";
  char b[] = "asdfghjkl;";
  char c[] = "zxcvbnm,./";
  char x, y[110];
  scanf("%c", &x);
  scanf("%s", y);
  int index, flag;
  if (x == 'R') {
    for (int i = 0; i < strlen(y); i++) {
      index = -1, flag = 0;
      for (int j = 0; j < strlen(a); j++) {
        if (y[i] == a[j] && j)
          index = j, flag = 0;
        else if (y[i] == b[j] && j)
          index = j, flag = 1;
        else if (y[i] == c[j] && j)
          index = j, flag = 2;
        else if (y[i] == a[j] && !j)
          index = j, flag = 3;
        else if (y[i] == b[j] && !j)
          index = j, flag = 4;
        else if (y[i] == c[j] && !j)
          index = j, flag = 5;
      }
      if (flag == 0)
        printf("%c", a[index - 1]);
      else if (flag == 1)
        printf("%c", b[index - 1]);
      else if (flag == 2)
        printf("%c", c[index - 1]);
      else if (flag == 3)
        printf("%c", a[index]);
      else if (flag == 4)
        printf("%c", b[index]);
      else if (flag == 5)
        printf("%c", c[index]);
    }
  } else {
    for (int i = 0; i < strlen(y); i++) {
      index = -1, flag = 0;
      for (int j = 0; j < strlen(a); j++) {
        if (y[i] == a[j] && j != strlen(a) - 1)
          index = j, flag = 0;
        else if (y[i] == b[j] && j != strlen(a) - 1)
          index = j, flag = 1;
        else if (y[i] == c[j] && j != strlen(a) - 1)
          index = j, flag = 2;
        else if (y[i] == a[j] && j == strlen(a) - 1)
          index = j, flag = 3;
        else if (y[i] == b[j] && j == strlen(a) - 1)
          index = j, flag = 4;
        else if (y[i] == c[j] && j == strlen(a) - 1)
          index = j, flag = 5;
      }
      if (flag == 0)
        printf("%c", a[index + 1]);
      else if (flag == 1)
        printf("%c", b[index + 1]);
      else if (flag == 2)
        printf("%c", c[index + 1]);
      else if (flag == 3)
        printf("%c", a[index]);
      else if (flag == 4)
        printf("%c", b[index]);
      else if (flag == 5)
        printf("%c", c[index]);
    }
  }
  puts("");
  return 0;
}
