#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string str = "qwertyuiopasdfghjkl;zxcvbnm,./";
  char c;
  cin >> c;
  string temp;
  cin >> temp;
  if (c == 'R') {
    for (long long int i = 0; i < temp.length(); i++) {
      cout << str[str.find(temp[i]) - 1];
    }
  } else {
    for (long long int i = 0; i < temp.length(); i++) {
      cout << str[str.find(temp[i]) + 1];
    }
  }
  return 0;
}
