#include <bits/stdc++.h>
using namespace std;
int main() {
  char d;
  string row1 = "qwertyuiop", row2 = "asdfghjkl;", row3 = "zxcvbnm,./", str;
  map<char, int> direction;
  direction['R'] = -1, direction['L'] = 1;
  cin >> d;
  cin >> str;
  int i, j, l = str.length();
  for (i = 0; i < l; i++) {
    for (j = 0; j < 10; j++) {
      if (row1[j] == str[i]) {
        str[i] = row1[j + direction[d]];
        break;
      } else if (row2[j] == str[i]) {
        str[i] = row2[j + direction[d]];
        break;
      } else if (row3[j] == str[i]) {
        str[i] = row3[j + direction[d]];
        break;
      }
    }
  }
  cout << str << endl;
  return 0;
}
