H,W,N = gets.split.map(&:to_i)
sr,sc = gets.split.map(&:to_i)
S = gets.chomp
T = '-' + gets.chomp[0..-2]

cl,cr,cu,cd = [
  S.count('L') - T.count('R'),
  S.count('R') - T.count('L'),
  S.count('U') - T.count('D'),
  S.count('D') - T.count('U'),
]

i = 0
l = r = sc
u = d = sr
while i < N
  s = S[i]
  t = T[i]
  l += 1 if t == 'R' && cr+l < W
  l -= 1 if s == 'L'
  r -= 1 if t == 'L' && 1 < cl+r
  r += 1 if s == 'R'
  u += 1 if t == 'D' && cd+u < H
  u -= 1 if s == 'U'
  d -= 1 if t == 'U' && 1 < cu+d
  d += 1 if s == 'D'
  p [s,t,l,r,u,d]
  if l < 1 || W < r || u < 1 || H < d
    puts 'NO'
    exit 0
  end
  cl -= 1 if s == 'L'
  cl += 1 if t == 'R'
  cr -= 1 if s == 'R'
  cr += 1 if t == 'L'
  cu -= 1 if s == 'U'
  cu += 1 if t == 'D'
  cd -= 1 if s == 'D'
  cd += 1 if t == 'U'
  i += 1
end

puts 'YES'
