#include <bits/stdc++.h>
using namespace std;
string str = "qwertyuiopasdfghjkl;zxcvbnm,./";
int n;
int main() {
  ios::sync_with_stdio(false);
  char ch;
  while (cin >> ch) {
    if (ch == 'R') {
      string s;
      cin >> s;
      int l = (int)s.length();
      for (int i = 0; i < l; i++) cout << str[str.find(s[i], 0) - 1];
      cout << endl;
    } else {
      string s;
      cin >> s;
      int l = (int)s.length();
      for (int i = 0; i < l; i++) cout << str[str.find(s[i], 0) + 1];
      cout << endl;
    }
  }
  return 0;
}
