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