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