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