#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[105];
  char b[3][11] = {"qwertyuiop", "asdfghjkl;", "zxcvbnm,./"};
  cin >> a;
  if (a[0] == 'R') {
    cin >> a;
    int n = strlen(a);
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < 3; j++) {
        for (int k = 1; k < 10; k++) {
          if (a[i] == b[j][k]) cout << b[j][k - 1];
        }
      }
    }
  } else {
    cin >> a;
    int n = strlen(a);
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < 3; j++) {
        for (int k = 0; k < 10; k++) {
          if (a[i] == b[j][k]) cout << b[j][k + 1];
        }
      }
    }
  }
  return 0;
}
