#include <bits/stdc++.h>
using namespace std;
int main() {
  const string keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char c;
  string s;
  cin >> c;
  cin >> s;
  if (c == 'R') {
    for (char cc : s) {
      for (int i = 1; i < keyboard.length(); i++) {
        if (keyboard[i] == cc) {
          cout << keyboard[i - 1];
        }
      }
    }
  } else {
    for (char cc : s) {
      for (int i = 0; i < keyboard.length() - 1; i++) {
        if (keyboard[i] == cc) {
          cout << keyboard[i + 1];
        }
      }
    }
  }
}
