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