#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * (b / gcd(a, b)); }
string a = "qwertyuiop";
string b = "asdfghjkl;";
string c = "zxcvbnm,./";
char m;
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> m >> s;
  size_t found;
  for (int i = 0; i < ((int)(s).size()); i++) {
    found = a.find(s[i]);
    if (found != string::npos) {
      if (m == 'R')
        cout << a[found - 1];
      else
        cout << a[found + 1];
    }
    found = b.find(s[i]);
    if (found != string::npos) {
      if (m == 'R')
        cout << b[found - 1];
      else
        cout << b[found + 1];
    }
    found = c.find(s[i]);
    if (found != string::npos) {
      if (m == 'R')
        cout << c[found - 1];
      else
        cout << c[found + 1];
    }
  }
}
