H, W, N, y, x = (gets+gets).split.map(&:to_i)
S, T = *$<
R, ST = Hash.new(0), {?L=>?R, ?R=>?L, ?U=>?D, ?D=>?U}
N.times{|i|
	R[S[i]] += 1
	if x-R[?L] < 1 or W < x+R[?R] or y-R[?U] < 1 or H < y+R[?D]
		puts 'NO'
		exit
	end
	R[ST[T[i]]] -= 1
	case ST[T[i]]
	when ?L
		R[?L] += 1 if W < x-R[?L]
	when ?R
		R[?R] += 1 if x+R[?R] < 1
	when ?U
		R[?U] += 1 if H < y-R[?U]
	when ?D
		R[?D] += 1 if y+R[?D] < 1
	end
}
puts 'YES'
