#include <bits/stdc++.h>
using namespace std;
int main() {
  string x, y, z;
  x = "qwertyuiop";
  y = "asdfghjkl;";
  z = "zxcvbnm,./";
  string s, w, m = "";
  int r = 0;
  cin >> s >> w;
  int e;
  if (s == "R")
    e = -1;
  else
    e = 1;
  for (int i = 0; i < w.size(); i++) {
    if (x.find(w[i]) != -1) {
      cout << x[x.find(w[i]) + e];
      r++;
    } else if (y.find(w[i]) != -1) {
      cout << y[y.find(w[i]) + e];
      r++;
    } else if (z.find(w[i]) != -1) {
      cout << z[z.find(w[i]) + e];
      r++;
    }
  }
}
