#include <bits/stdc++.h>   int main() {     int i = 0, j = 0, l, k;     char a[100], s[100], shift;     scanf( %c , &shift);     scanf( %s , a);     l = strlen(a);     for (k = 0; k < l; k++) {       if (shift ==  R  && i <= l && a[i] ==  w ) {         a[i] =  q ;         i++;       } else if (shift ==  R  && i <= l && a[i] ==  e ) {         a[i] =  w ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  w ) {         a[j] =  e ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  r ) {         a[i] =  e ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  e ) {         a[j] =  r ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  t ) {         a[i] =  r ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  r ) {         a[j] =  t ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  y ) {         a[i] =  t ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  t ) {         a[j] =  y ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  u ) {         a[i] =  y ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  y ) {         a[j] =  u ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  i ) {         a[i] =  u ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  u ) {         a[j] =  i ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  o ) {         a[i] =  i ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  i ) {         a[j] =  o ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  p ) {         a[i] =  o ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  o ) {         a[j] =  p ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  s ) {         a[i] =  a ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  a ) {         a[j] =  s ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  d ) {         a[i] =  s ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  s ) {         a[j] =  d ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  f ) {         a[i] =  d ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  d ) {         a[j] =  f ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  g ) {         a[i] =  f ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  f ) {         a[j] =  g ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  h ) {         a[i] =  g ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  g ) {         a[j] =  h ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  j ) {         a[i] =  h ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  h ) {         a[j] =  j ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  k ) {         a[i] =  j ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  j ) {         a[j] =  k ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  l ) {         a[i] =  k ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  k ) {         a[j] =  l ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  ; ) {         a[i] =  l ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  l ) {         a[j] =  ; ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  x ) {         a[i] =  z ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  z ) {         a[j] =  x ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  c ) {         a[i] =  x ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  x ) {         a[j] =  c ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  v ) {         a[i] =  c ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  c ) {         a[j] =  v ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  b ) {         a[i] =  v ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  v ) {         a[j] =  b ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  n ) {         a[i] =  b ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  b ) {         a[j] =  n ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  m ) {         a[i] =  n ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  n ) {         a[j] =  m ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  , ) {         a[i] =  m ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  m ) {         a[j] =  , ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  . ) {         a[i] =  , ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  , ) {         a[j] =  . ;         j++;       } else if (shift ==  R  && i <= l && a[i] ==  / ) {         a[i] =  . ;         i++;       } else if (shift ==  L  && j < l && a[j] ==  . ) {         a[j] =  / ;         j++;       } else if (shift ==  L  && j < l && a[j] ==  q ) {         a[j] =  w ;         j++;       }     }     printf( %s , a);     return 0;   }