str = gets.split
N,A,B,C,D = str[0].to_i, str[1].to_i, str[2].to_i, str[3].to_i, str[4].to_i

S = gets.chomp

e = 0
if C == N
  e = N
else
  e = C+1
end

f = 0
if C > D
  for x in B-2...e-2
    if S[x..x+2] == "..."
      f = 1
    end
  end
  if f == 0
    puts "No"
    exit!
  end
end

if C > D
  e = C
else
  e = D
end

for x in A-1...e-1
  if S[x..x+1] == "##"
    puts "No"
    exit!
  end
end

puts "Yes"