#include <bits/stdc++.h>
int main() {
  char kb[100] = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char dir = getchar();
  int i, j, k = 0;
  char inp[101], out[101];
  scanf("%s", &inp);
  if (dir == 'R') {
    for (i = 0; inp[i] != '\0'; i++) {
      for (j = 0; kb[j] != '\0'; j++) {
        if (inp[i] == kb[j]) {
          out[k++] = kb[j - 1];
          break;
        }
      }
    }
  } else if (dir == 'L') {
    for (i = 0; inp[i] != '\0'; i++) {
      for (j = 0; kb[j] != '\0'; j++) {
        if (inp[i] == kb[j]) {
          out[k++] = kb[j + 1];
          break;
        }
      }
    }
  }
  out[k] = '\0';
  printf("%s\n", out);
  return 0;
}
