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