#include <bits/stdc++.h>
using namespace std;
int main() {
  char arr[3][11] = {
      "qwertyuiop",
      "asdfghjkl;",
      "zxcvbnm,./",
  };
  char c;
  string s1, s2 = "";
  cin >> c;
  cin >> s1;
  for (int m = 0; m < s1.size(); m++) {
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 11; j++) {
        if (c == 'L' && arr[i][j] == s1[m]) {
          s2 += arr[i][j + 1];
        } else if (c == 'R' && arr[i][j] == s1[m]) {
          s2 += arr[i][j - 1];
        }
      }
    }
  }
  cout << s2 << endl;
}
