#include <bits/stdc++.h>
using namespace std;
int main() {
  char a, b;
  string s1, s2, s3;
  s1 = "qwertyuiopasdfghjkl;zxcvbnm,./";
  cin >> a >> s2;
  for (int i = 0; i < s2.size(); i++) {
    for (int j = 0; j < s1.size(); j++) {
      if (s2[i] == s1[j]) {
        if (a == 'R') {
          s3 += s1[j - 1];
        } else {
          s3 += s1[j + 1];
        }
      }
    }
  }
  cout << s3 << endl;
}
