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