#include <bits/stdc++.h>
using namespace std;
string ha = "qwertyuiopasdfghjkl;zxcvbnm,./";
int findi(char c) {
  int i = 0;
  for (i = 0; i < ha.size(); i++)
    if (ha[i] == c) return i;
}
int main() {
  char c;
  string s, res = "";
  cin >> c >> s;
  if (c == 'R') {
    for (int i = 0; i < s.size(); i++) {
      res += ha[findi(s[i]) - 1];
    }
  } else {
    for (int i = 0; i < s.size(); i++) res += ha[findi(s[i]) + 1];
  }
  cout << res << endl;
  return 0;
}
