import Data.List
import Data.Maybe
import qualified Data.ByteString.Char8 as B
main=B.interact$B.pack.(\a->if a then "YES" else "NO").solve.((\(hwns,st)->(map readInts hwns,st)).splitAt 2).B.lines
readInts=map(fst.fromJust.B.readInt).B.words
solve([[h,w,n],[sr,sc]],[s,t])=isJust.foldl' f(Just(sc,sc,sr,sr,0,0))$B.zip s t where
  f (Just a)(s,t)
    |l<1 || w<r || u<1 || h<d || lr>=w || ud>=h=Nothing
    |otherwise=Just$g2 b t
    where b@(l,r,u,d,lr,ud)=g1 a s
  f Nothing _=Nothing
  g1(l,r,u,d,lr,ud)c
    |c=='L'=(l-1,r,u,d,lr+1,ud)
    |c=='R'=(l,r+1,u,d,lr+1,ud)
    |c=='U'=(l,r,u-1,d,lr,ud+1)
    |c=='D'=(l,r,u,d+1,lr,ud+1)
  g2(l,r,u,d,lr,ud)c
    |c=='L'=(l,max 1$r-1,u,d,max 0$lr-1,ud)
    |c=='R'=(min w$l+1,r,u,d,max 0$lr-1,ud)
    |c=='U'=(l,r,u,max 1$d-1,lr,max 0$ud-1)
    |c=='D'=(l,r,min h$u+1,d,lr,max 0$ud-1)