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