#include <bits/stdc++.h>
using namespace std;
long long int n, t, b, x, y;
string s;
char a;
void solve() {
  cin >> a >> s;
  string keyboard = "qwertyuiopasdfghjkl;zxcvbnm,./", ans = "";
  long long int o = (a == 'R' ? -1 : 1);
  for (int i = 0; i < s.length(); i++) {
    ans += keyboard[keyboard.find(s[i]) + o];
  }
  cout << ans << endl;
}
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
