#include <bits/stdc++.h>
using namespace std;
int main() {
  int i = 0, j = 0;
  char a;
  cin >> a;
  string str;
  cin >> str;
  string s = "qwertyuiop\nasdfghjkl;\nzxcvbnm,./\n";
  if (a == 'R') {
    for (i = 0; i < str.length(); i++) {
      for (j = 0; j < s.length(); j++) {
        if (str[i] == s[j]) {
          str[i] = s[j - 1];
          break;
        }
      }
    }
  }
  if (a == 'L') {
    for (i = 0; i < str.length(); i++) {
      for (j = 0; j < s.length(); j++) {
        if (str[i] == s[j]) {
          str[i] = s[j + 1];
          break;
        }
      }
    }
  }
  cout << str;
}
