#include <bits/stdc++.h>
using namespace std;
int main() {
  string x = "qwertyuiopasdfghjkl;zxcvbnm,./";
  int n;
  string y;
  char a;
  cin >> a;
  cin >> y;
  if (a == 'R') {
    for (int i = 0; i < y.size(); i++) {
      for (int j = 0; j < x.size(); j++) {
        if (y[i] == x[j]) {
          n = j;
          break;
        }
      }
      y[i] = x[n - 1];
    }
  } else {
    for (int i = 0; i < y.size(); i++) {
      for (int j = 0; j < x.size(); j++) {
        if (y[i] == x[j]) {
          n = j;
          break;
        }
      }
      y[i] = x[n + 1];
    }
  }
  cout << y;
  return 0;
}
