#include <bits/stdc++.h>
using namespace std;
int IsPresent(char, string);
int main() {
  string s1, s2, s3;
  char ch;
  string s;
  int sfact;
  s1 = "qwertyuiop";
  s2 = "asdfghjkl;";
  s3 = "zxcvbnm,./";
  cin >> ch >> s;
  sfact = (ch == 'R') ? -1 : 1;
  for (int i = 0; i < s.length(); i++) {
    int pos;
    if (pos = IsPresent(s[i], s1))
      cout << s1[pos + sfact - 1];
    else if (pos = IsPresent(s[i], s2))
      cout << s2[pos + sfact - 1];
    else if (pos = IsPresent(s[i], s3))
      cout << s3[pos + sfact - 1];
  }
  return 0;
}
int IsPresent(char ch, string s) {
  for (int i = 0; i < s.length(); i++)
    if (s[i] == ch) return i + 1;
  return 0;
}
