#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<char> v;
  vector<char> v1;
  char s1[] = "qwertyuiop", s2[] = {"asdfghjkl;"}, s3[] = {"zxcvbnm,./"};
  string s, rl;
  cin >> rl >> s;
  for (int i = 0; i < s.size(); i++) {
    for (int j = 0; j < 10; j++) {
      if (s[i] == s2[j] && rl[0] == 'R') {
        v.push_back(s2[j - 1]);
      } else if (s[i] == s2[j] && rl[0] == 'L') {
        v.push_back(s2[j + 1]);
      }
    }
    for (int j = 0; j < 10; j++) {
      if (s[i] == s1[j] && rl[0] == 'R') {
        v.push_back(s1[j - 1]);
      } else if (s[i] == s1[j] && rl[0] == 'L') {
        v.push_back(s1[j + 1]);
      }
    }
    for (int j = 0; j < 10; j++) {
      if (s[i] == s3[j] && rl[0] == 'R') {
        v.push_back(s3[j - 1]);
      } else if (s[i] == s3[j] && rl[0] == 'L') {
        v.push_back(s3[j + 1]);
      }
    }
  }
  for (int i = 0; i < v.size(); i++) {
    cout << v[i];
  }
  cout << endl;
  return 0;
}
