n, a, b, c, d = map(int, input().split())
s = input()
flag1, flag2 = False, False
if d > c:
    flag = "##" not in s[b: d] and "##" not in s[a: c]
else:
    flag = "..." in s[b - 2: d + 1]

print("Yes" if flag else "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 flag1, flag2 = False, False flag1 False flag2 False if d > c:
    flag = "##" not in s[b: d] and "##" not in s[a: c]
else:
    flag = "..." in s[b - 2: d + 1] d > c d c flag = "##" not in s[b: d] and "##" not in s[a: c] flag "##" not in s[b: d] and "##" not in s[a: c] "##" not in s[b: d] "##" s[b: d] s b: d b d "##" not in s[a: c] "##" s[a: c] s a: c a c flag = "..." in s[b - 2: d + 1] flag "..." in s[b - 2: d + 1] "..." s[b - 2: d + 1] s b - 2: d + 1 b - 2 b 2 d + 1 d 1 print("Yes" if flag else "No") print "Yes" if flag else "No" flag "Yes" "No" d = map(int, input().split()) map(int, input().split()) d s = input() input() s b, c, d = map(int, input().split()) map(int, input().split()) b c, d = map(int, input().split()) map(int, input().split()) c flag = "..." in s[b - 2: d + 1] "..." in s[b - 2: d + 1] flag flag = "##" not in s[b: d] and "##" not in s[a: c] "##" not in s[b: d] and "##" not in s[a: c] flag n, a, b, c, d = map(int, input().split()) map(int, input().split()) n a, b, c, d = map(int, input().split()) map(int, input().split()) a flag1, flag2 = False, False False flag1 flag2 = False, False False flag2
n, a, b, c, d = map(int, input().split())
s = input()
flag1, flag2 = False, False
if d > c:
    flag = "##" not in s[b: d] and "##" not in s[a: c]
else:
    flag = "..." in s[b - 2: d + 1]

print("Yes" if flag else "No")