#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
int main() {
  string s = "qwertyuiopasdfghjkl;zxcvbnm,./";
  string s1, s2;
  while (cin >> s1 >> s2) {
    char ans[1000];
    int cnt = s2.length();
    for (int i = 0; i < cnt; i++) {
      int j = 0;
      while (s[j] != s2[i]) j++;
      if (s1[0] == 'R')
        ans[i] = s[j - 1];
      else
        ans[i] = s[j + 1];
    }
    ans[cnt] = '\0';
    cout << ans << endl;
  }
  return 0;
}
