#include <bits/stdc++.h>
using namespace std;
int main() {
  string s[3];
  s[0] += "qwertyuiop";
  s[1] += "asdfghjkl;";
  s[2] += "zxcvbnm,./";
  string ss;
  char t;
  cin >> t;
  cin >> ss;
  if (t == 'R') {
    for (int i = 0; i < ss.size(); i++) {
      for (int j = 0; j < 3; j++) {
        for (int k = 0; k < 10; k++) {
          if (ss[i] == s[j][k]) {
            cout << s[j][k - 1];
          }
        }
      }
    }
    cout << endl;
  } else {
    for (int i = 0; i < ss.size(); i++) {
      for (int j = 0; j < 3; j++) {
        for (int k = 0; k < 10; k++) {
          if (ss[i] == s[j][k]) cout << s[j][k + 1];
        }
      }
    }
    cout << endl;
  }
}
