#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j;
  string W_s, W_key, keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
  cin >> W_key;
  cin >> W_s;
  if (W_key == "R") {
    for (i = 0; i < W_s.length(); i++) {
      for (j = 0; i < W_s.length(); j++) {
        if (keyboard[j] == W_s[i]) {
          cout << keyboard[j - 1];
          break;
        }
      }
    }
  } else {
    for (i = 0; i < W_s.length(); i++) {
      for (j = 0; i < W_s.length(); j++) {
        if (keyboard[j] == W_s[i]) {
          cout << keyboard[j + 1];
          break;
        }
      }
    }
  }
}
