datas = gets.split.map{|n|n.to_i}
n = datas[0]
a = datas[1]
b = datas[2]
c = datas[3]
d = datas[4]
mapstring = gets
if c < d
  activemap = mapstring[0..(d-1)]
else
  activemap = mapstring[0..(c-1)]
end
clearflag = true
if activemap.include?("##")
  clearflag = false
else
  if c < d
    clearflag = true
  else
    submap = mapstring[((b-1)..(d-1))]
    clearflag = submap.include?("...")
  end
end


if clearflag
  puts "Yes"
else
  puts "No"
end