#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  char matriz[3][11];
  strcpy(matriz[0], "qwertyuiop");
  strcpy(matriz[1], "asdfghjkl;");
  strcpy(matriz[2], "zxcvbnm,./");
  char c;
  scanf("%c", &c);
  int n;
  if (c == 'R') n = -1;
  if (c == 'L') n = 1;
  char string[200];
  scanf(" %s", string);
  int k = strlen(string), i, j, l;
  for (i = 0; i < k; ++i) {
    for (j = 0; j < 3; ++j) {
      for (l = 0; l < 10; ++l) {
        if (string[i] == matriz[j][l]) {
          printf("%c", matriz[j][l + n]);
        }
      }
    }
  }
  printf("\n");
  return 0;
}
