#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, c, input;
  char key;
  cin >> key;
  a = "qwertyuiop";
  b = "asdfghjkl;";
  c = "zxcvbnm,./";
  cin >> input;
  int i, loop;
  int k = 0;
  if (key == 'R') {
    for (i = 0; i < input.length(); i++) {
      char mom = input[k];
      for (loop = 0; loop < a.length(); loop++) {
        if (mom == a[loop]) {
          loop--;
          cout << a[loop];
          break;
        }
      }
      for (loop = 0; loop < b.length(); loop++) {
        if (mom == b[loop]) {
          loop--;
          cout << b[loop];
          break;
        }
      }
      for (loop = 0; loop < c.length(); loop++) {
        if (mom == c[loop]) {
          loop--;
          cout << c[loop];
          break;
        }
      }
      k++;
    }
  }
  if (key == 'L') {
    for (i = 0; i < input.length(); i++) {
      char mom = input[k];
      for (loop = 0; loop < a.length(); loop++) {
        if (mom == a[loop]) {
          loop++;
          cout << a[loop];
          break;
        }
      }
      for (loop = 0; loop < b.length(); loop++) {
        if (mom == b[loop]) {
          loop++;
          cout << b[loop];
          break;
        }
      }
      for (loop = 0; loop < c.length(); loop++) {
        if (mom == c[loop]) {
          loop++;
          cout << c[loop];
          break;
        }
      }
      k++;
    }
  }
  return 0;
}
