#include <bits/stdc++.h>
using namespace std;
int main() {
  string ss, s = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char c, ch;
  cin >> ch;
  while (cin >> c) {
    int a = s.find(c);
    if (ch == 'L') {
      cout << s[a + 1];
    } else {
      cout << s[a - 1];
    }
  }
}
