#include <bits/stdc++.h>
const double PI = acos(-1.0);
const int INF = 0x3f3f3f3f;
using namespace std;
const int MAXN = 110 + 10;
const int MOD = 20071027;
const char str[] = "qwertyuiopasdfghjkl;zxcvbnm,./";
char s[MAXN];
int main() {
  char ch;
  int i, j;
  ch = getchar();
  scanf("%s", s);
  if (ch == 'R') {
    for (i = 0; i < strlen(s); i++) {
      int pos = find(str, str + strlen(str), s[i]) - str;
      printf("%c", str[pos - 1]);
    }
  } else {
    for (i = 0; i < strlen(s); i++) {
      int pos = find(str, str + strlen(str), s[i]) - str;
      printf("%c", str[pos + 1]);
    }
  }
  puts("");
  return 0;
}
