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