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