#include <bits/stdc++.h>
using namespace std;
char keyboard[3][12] = {"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};
int main() {
  char D;
  string S, res;
  int offset;
  cin >> D >> S;
  if (D == 'R') {
    offset = -1;
  } else {
    offset = 1;
  }
  for (int i = 0; i < S.size(); i++) {
    for (int line = 0; line < 3; line++) {
      for (int key = 0; key < 10; key++) {
        if (keyboard[line][key] == S[i]) {
          if (key + offset < 0 || key + offset >= 10) {
            res.push_back(S[i]);
          } else {
            res.push_back(keyboard[line][key + offset]);
          }
        }
      }
    }
  }
  cout << res << endl;
  return 0;
}
