#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "qwertyuiopasdfghjkl;zxcvbnm,./", s1;
  char c;
  cin >> c >> s1;
  for (int i = 0; i < s1.size(); ++i)
    cout << s[s.find(s1[i]) + (c == 'R' ? -1 : 1)];
}
