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