#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  vector<char> keys{'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p',
                    'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';',
                    'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/'};
  char shift;
  cin >> shift;
  string sequence;
  cin >> sequence;
  if (shift == 'R') {
    for (const auto& ch : sequence) {
      auto pos = find(keys.begin(), keys.end(), ch);
      auto index = distance(keys.begin(), pos);
      cout << keys.at(index - 1);
    }
  } else {
    for (const auto& ch : sequence) {
      auto pos = find(keys.begin(), keys.end(), ch);
      auto index = distance(keys.begin(), pos);
      cout << keys.at(index + 1);
    }
  }
  return 0;
}
