n, a, b, c, d = map(int, input().split())
s = input()
a -= 1; b -= 1; c -= 1; d -= 1; e = 1
for i in range(b, min(c, d)+1):
    if s[i-1] == "." and s[i] == "." and s[i+1] == ".": e = 0
if c < d: e = 0
for i in range(a, max(c, d)):
    if s[i] == "#" and s[i+1] == "#": e = 1
print("Yes") if e == 0 else print("No") n, a, b, c, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split a b c d s = input() s input() input a -= 1 a 1 b -= 1 b 1 c -= 1 c 1 d -= 1 d 1 e = 1 e 1 for i in range(b, min(c, d)+1):
    if s[i-1] == "." and s[i] == "." and s[i+1] == ".": e = 0 i range(b, min(c, d)+1) range b min(c, d)+1 min(c, d) min c d 1 if s[i-1] == "." and s[i] == "." and s[i+1] == ".": e s[i-1] == "." and s[i] == "." and s[i+1] == "." s[i-1] == "." and s[i] == "." s[i-1] == "." s[i-1] s i-1 i 1 "." s[i] == "." s[i] s i "." s[i+1] == "." s[i+1] s i+1 i 1 "." if c < d: e = 0 c < d c d for i in range(a, max(c, d)):
    if s[i] == "#" and s[i+1] == "#": e = 1 i range(a, max(c, d)) range a max(c, d) max c d if s[i] == "#" and s[i+1] == "#": e s[i] == "#" and s[i+1] == "#" s[i] == "#" s[i] s i "#" s[i+1] == "#" s[i+1] s i+1 i 1 "#" print("Yes") if e == 0 else print("No") e == 0 e 0 print("Yes") print "Yes" print("No") print "No" a, b, c, d = map(int, input().split()) map(int, input().split()) a b, c, d = map(int, input().split()) map(int, input().split()) b n, a, b, c, d = map(int, input().split()) map(int, input().split()) n s = input() input() s b -= 1 1 b d = map(int, input().split()) map(int, input().split()) d d -= 1 1 d c -= 1 1 c a -= 1 1 a c, d = map(int, input().split()) map(int, input().split()) c e = 1 1 e
n, a, b, c, d = map(int, input().split())
s = input()
a -= 1; b -= 1; c -= 1; d -= 1; e = 1
for i in range(b, min(c, d)+1):
    if s[i-1] == "." and s[i] == "." and s[i+1] == ".": e = 0
if c < d: e = 0
for i in range(a, max(c, d)):
    if s[i] == "#" and s[i+1] == "#": e = 1
print("Yes") if e == 0 else print("No")