#include <bits/stdc++.h>
using namespace std;
long long int arr[1000100], brr[1000000];
int main() {
  long long int a, b, n;
  string s, p, l, g;
  cin >> p;
  cin >> g;
  s = "qwertyuiopasdfghjkl;zxcvbnm,./";
  for (int i = 0; i <= g.size(); i++) {
    for (int j = 0; j <= s.size(); j++) {
      if (g[i] == s[j]) {
        if (p[0] == 'R') g[i] = s[j - 1];
        if (p[0] == 'L') {
          g[i] = s[j + 1];
        }
        break;
      }
    }
  }
  cout << g << " " << endl;
  return 0;
}
