#include <bits/stdc++.h>
using namespace std;
const double PI = 3.141592653589793;
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string a, b, c;
  a = "qwertyuiopasdfghjkl;zxcvbnm,./";
  cin >> b >> c;
  string d = "R";
  if (b.compare(d)) {
    for (int i = 0; i < (int)c.size(); i++) {
      for (int j = 0; j < (int)a.size(); j++) {
        if (a[j] == c[i]) {
          cout << a[j + 1];
        }
      }
    }
  } else {
    for (int i = 0; i < (int)c.size(); i++) {
      for (int j = 0; j < (int)a.size(); j++) {
        if (a[j] == c[i]) {
          cout << a[j - 1];
        }
      }
    }
  }
  return 0;
}
