#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, cnt, n;
string s, p;
int main() {
  char rl = 0;
  s = "qwertyuiopasdfghjkl;zxcvbnm,./";
  cin >> rl;
  cin >> p;
  for (int i = 0; i < p.size(); i++)
    if (rl == 'R')
      cout << s[s.find(p[i]) - 1];
    else
      cout << s[s.find(p[i]) + 1];
  return 0;
}
