#include <bits/stdc++.h>
using namespace std;
string kb = "qwertyuiopasdfghjkl;zxcvbnm,./";
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  char rl;
  cin >> rl;
  string m;
  cin >> m;
  for (size_t i = 0; i < m.length(); i++) {
    for (size_t j = 0; j < kb.length(); j++) {
      if (kb[j] == m[i]) {
        if (rl == 'R') {
          cout << kb[j - 1];
        } else {
          cout << kb[j + 1];
        }
      }
    }
  }
  return 0;
}
