#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[31] = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char r[31] = "=qwertyuio=asdfghjkl=zxcvbnm,.";
  char l[31] = "wertyuiop=sdfghjkl;=xcvbnm,./=";
  char K;
  char q[101];
  int i, x;
  cin >> K >> q;
  if (K == 'R') {
    for (i = 0; q[i]; i++) {
      for (x = 0; q[i] != a[x]; x++)
        ;
      cout << r[x];
    }
  } else {
    for (i = 0; q[i]; i++) {
      for (x = 0; q[i] != a[x]; x++)
        ;
      cout << l[x];
    }
  }
  return 0;
}
