#include <bits/stdc++.h>
using namespace std;
int main() {
  string ss[] = {"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};
  char ch;
  cin >> ch;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < 3; j++) {
      int tmp = ss[j].find(s[i]);
      if (tmp != string::npos) {
        if (ch == 'R') {
          cout << ss[j][tmp - 1];
        } else
          cout << ss[j][tmp + 1];
        break;
      }
    }
  }
  return 0;
}
