#include <bits/stdc++.h>
using namespace std;
int main() {
  string str = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char k;
  string s;
  while (cin >> k >> s) {
    int tmp = (k == 'R' ? -1 : 1);
    string res;
    for (int i = 0; i < s.size(); i++) res += str[str.find(s[i]) + tmp];
    cout << res << endl;
  }
  return 0;
}
