#include <bits/stdc++.h>
using namespace std;
char d;
string k = "qwertyuiopasdfghjkl;zxcvbnm,./";
char seq;
int main() {
  cin >> d;
  while (cin >> seq) {
    cout << k[k.find(seq) - (d == 'R') + (d == 'L')];
  }
}
