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