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