#include <bits/stdc++.h>
using namespace std;
int main() {
  map<char, char> mp, mp1;
  mp['s'] = 'a', mp['d'] = 's', mp['f'] = 'd', mp['g'] = 'f', mp['h'] = 'g',
  mp['j'] = 'h', mp['k'] = 'j', mp['l'] = 'k', mp[';'] = 'l';
  mp['w'] = 'q', mp['e'] = 'w', mp['r'] = 'e', mp['t'] = 'r', mp['y'] = 't',
  mp['u'] = 'y', mp['i'] = 'u', mp['o'] = 'i', mp['p'] = 'o';
  mp['x'] = 'z', mp['c'] = 'x', mp['v'] = 'c', mp['b'] = 'v', mp['n'] = 'b',
  mp['m'] = 'n', mp[','] = 'm', mp['.'] = ',', mp['/'] = '.';
  mp1['q'] = 'w', mp1['w'] = 'e', mp1['e'] = 'r', mp1['r'] = 't',
  mp1['t'] = 'y', mp1['y'] = 'u', mp1['u'] = 'i', mp1['i'] = 'o',
  mp1['o'] = 'p';
  mp1['a'] = 's', mp1['s'] = 'd', mp1['d'] = 'f', mp1['f'] = 'g',
  mp1['g'] = 'h', mp1['h'] = 'j', mp1['j'] = 'k', mp1['k'] = 'l',
  mp1['l'] = ';';
  mp1['z'] = 'x', mp1['x'] = 'c', mp1['c'] = 'v', mp1['v'] = 'b',
  mp1['b'] = 'n', mp1['n'] = 'm', mp1['m'] = ',', mp1[','] = '.',
  mp1['.'] = '/';
  char ch;
  string s;
  cin >> ch >> s;
  if (ch == 'R') {
    for (int i = 0; i < s.size(); i++) cout << mp[s[i]];
    cout << endl;
  } else {
    for (int i = 0; i < s.size(); i++) cout << mp1[s[i]];
    cout << endl;
  }
}
