#include <bits/stdc++.h>
using namespace std;
int main() {
  char c;
  string s, t = "qwertyuiopasdfghjkl;zxcvbnm,./";
  cin >> c >> s;
  char R[123];
  char L[123];
  for (size_t i = 1; i < t.size(); ++i) {
    R[t[i]] = t[i - 1];
  }
  for (int i = 0; i < t.size() - 1; ++i) {
    L[t[i]] = t[i + 1];
  }
  for (auto& i : s) {
    cout << (c == 'R' ? R[i] : L[i]);
  }
}
