#include <bits/stdc++.h>
using namespace std;
const long long M = 1e9 + 7;
long long a, b, x, y;
string s;
char t;
string ans = "qwertyuiopasdfghjkl;zxcvbnm,./";
void solve() {
  cin >> t >> s;
  if (t == 'R') {
    for (long long i = 0; i < s.size(); i++) {
      for (long long j = 0; j < ans.size(); j++) {
        if (s[i] == ans[j]) {
          s[i] = ans[j - 1];
        }
      }
    }
  }
  if (t == 'L') {
    for (long long i = 0; i < s.size(); i++) {
      for (long long j = 0; j < ans.size(); j++) {
        if (s[i] == ans[j]) {
          s[i] = ans[j + 1];
          break;
        }
      }
    }
  }
  cout << s;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
