#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "qwertyuiopasdfghjkl;zxcvbnm,./", b;
  char s;
  scanf("%c", &s);
  cin >> b;
  int k = b.size();
  if (s == 'R')
    for (int i = 0, j = 0; j < k; i++)
      if (a[i] == b[j]) {
        b[j] = a[i - 1];
        j++;
        i = -1;
      }
  if (s == 'L')
    for (int i = 0, j = 0; j < k; i++)
      if (a[i] == b[j]) {
        b[j] = a[i + 1];
        j++;
        i = -1;
      }
  cout << b;
}
