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