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