#include <bits/stdc++.h>
int main(int argc, char** argv) {
  std::string keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
  int dir = 0;
  char d;
  std::cin >> d;
  (d == 'R') ? dir = -1 : dir = 1;
  std::string word;
  std::cin >> word;
  for (int i = 0; i < word.size(); i++) {
    for (int h = 0; h < keyboard.size(); h++) {
      if (word[i] == keyboard[h]) {
        std::cout << keyboard[h + dir];
      }
    }
  }
  return 0;
}
