n,a,b,c,d = [int(x) for x in input().split()]
s = input()

if s[a-1:c].count("##") > 0 or s[a-1:d].count("##") > 0:
    print("No")
elif d < c:
    if s[b-2:d+1].count("..."):
        print("Yes")
    else:
        print("No")
else:
    print("Yes") int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x n,a,b,c,d = [int(x) for x in input().split()] n [int(x) for x in input().split()] a b c d s = input() s input() input if s[a-1:c].count("##") > 0 or s[a-1:d].count("##") > 0:
    print("No")
elif d < c:
    if s[b-2:d+1].count("..."):
        print("Yes")
    else:
        print("No")
else:
    print("Yes") s[a-1:c].count("##") > 0 or s[a-1:d].count("##") > 0 s[a-1:c].count("##") > 0 s[a-1:c].count("##") [a-1:c].count [a-1:c] s a-1:c a-1 a 1 c count "##" 0 s[a-1:d].count("##") > 0 s[a-1:d].count("##") [a-1:d].count [a-1:d] s a-1:d a-1 a 1 d count "##" 0 print("No") print "No" elif d < c:
    if s[b-2:d+1].count("..."):
        print("Yes")
    else:
        print("No") d < c d c if s[b-2:d+1].count("..."):
        print("Yes")
    else:
        print("No") s[b-2:d+1].count("...") [b-2:d+1].count [b-2:d+1] s b-2:d+1 b-2 b 2 d+1 d 1 count "..." print("Yes") print "Yes" print("No") print "No" print("Yes") print "Yes" c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] c n,a,b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] n b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] b a,b,c,d = [int(x) for x in input().split()] [int(x) for x in input().split()] a s = input() input() s d = [int(x) for x in input().split()] [int(x) for x in input().split()] d
n,a,b,c,d = [int(x) for x in input().split()]
s = input()

if s[a-1:c].count("##") > 0 or s[a-1:d].count("##") > 0:
    print("No")
elif d < c:
    if s[b-2:d+1].count("..."):
        print("Yes")
    else:
        print("No")
else:
    print("Yes")