#include <bits/stdc++.h>
using namespace std;
int Mod = 1e9 + 7;
int main(int argc, char const *argv[]) {
  string k = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char d;
  cin >> d;
  string m;
  cin >> m;
  int a;
  if (d == 'R') {
    a = -1;
  } else
    a = 1;
  for (int i = 0; i < m.size(); i++) {
    cout << k[k.find(m[i]) + a];
  }
}
