#include <bits/stdc++.h>
using namespace std;
const string s = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
char dir, ch;
char nxt(char ch, int sh) {
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == ch) return s[i + sh];
  }
}
int main() {
  cin >> dir;
  cin.ignore();
  while (cin >> ch) {
    if (dir == 'R')
      printf("%c", nxt(ch, -1));
    else
      printf("%c", nxt(ch, +1));
  }
}
